Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Remove 'NoFollow' pages from search results
- This topic has 6 replies, 2 voices, and was last updated 6 years, 9 months ago by
Ernest Marcinko.
-
AuthorPosts
-
August 28, 2019 at 2:25 am #23786
HammondTaylor74
ParticipantHi,
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 #23805Ernest Marcinko
KeymasterHi 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.
August 28, 2019 at 11:43 pm #23822HammondTaylor74
ParticipantAugust 29, 2019 at 1:40 am #23823HammondTaylor74
ParticipantHi
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 #23827Ernest Marcinko
KeymasterHi 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.
August 30, 2019 at 1:16 am #23852HammondTaylor74
ParticipantThanks 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 #23859Ernest Marcinko
KeymasterHi 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.
-
AuthorPosts
- You must be logged in to reply to this topic.