Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Remove 'NoFollow' pages from search results
This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 3 months ago.
- AuthorPosts
- August 28, 2019 at 2:25 am #23786
Hi,
We have Yoast SEO plugin installed and use it to set the ‘nofollow’ meta tag for some pages.
How do we ensure the Ajax Search Pro does not return these pages in the search results?
thanks
Paul
August 28, 2019 at 11:37 am #23805Hi Paul,
Can you please add FTP access as well? I tried to make a change to a plugin file via the plugin editor, but somehow the information was not sent properly, and now it does not let me to the back-end. Usually wordpress prevents this automatically, but looks like this time this failed.
I was trying to test a possible solution, looks like wpseo sets a custom field, that might be possible to use to exclude those results.
Thank you, and sorry about the inconvenience.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 28, 2019 at 11:43 pm #23822August 29, 2019 at 1:40 am #23823Hi
Given that I have not heard back from you and you are currently offline I have had to make the call to delete the plugin which I removed from the directly from the file directory/server.
Can you please restore the search plugin back to its previous state before it ‘broke’ and try again to remove ‘nofollow’ pages from the search results.
thanks
Paul
August 29, 2019 at 8:46 am #23827Hi Paul,
Thank you, I have re-installed the newest version, and made a minor change to the code to support your request. I will include that change in the future releases, so you don’t have to worry about it.
To exclude the nofollow articles, I did two things:
1. A filter was made to not show items that have a specific custom field set to value 1: https://i.imgur.com/NN0lCsj.png
2. ..also, allowing items, that does not have that field: https://i.imgur.com/6HKx3Xl.pngNow, those items should not be present within the search anymore. Sorry about the inconvenience again, it should be fine now.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 30, 2019 at 1:16 am #23852Thanks Ernest.
Can you please tell me the CSS class to push the magnifying glass down (so it’s level with our top menu navigation.
Paul
August 30, 2019 at 8:52 am #23859Hi Paul,
Usually it is better to have the parent element adjusted, but I can’t see the magnifier on the front-end. This should however still work:
.asp_m { margin-top: 12px !important; }
Just adjust the top margin value, and it should be okay.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.