Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Breadcrumb Text Appearing in Search Results
- This topic has 3 replies, 2 voices, and was last updated 1 year ago by
Ernest Marcinko.
-
AuthorPosts
-
May 18, 2025 at 6:07 pm #54057
iris_mWch
ParticipantHello,
I’m using Ajax Search Pro on my site and recently added breadcrumb navigation to the top of my article pages. Since then, I’ve noticed that part of the breadcrumb — usually just the first word like “Home” — is showing up at the beginning of the post content in the search results.
It seems like the search is pulling in that breadcrumb text even though it’s not part of the actual article content.
Is there a recommended way to prevent this from happening?
Thanks in advance for your help!
Best regards,
IrisMay 19, 2025 at 8:37 am #54062Ernest Marcinko
KeymasterHi Iris,
This can only happen if the navigation is returned as part of the article content (even if it’s not stored with it). I assume there is a programmatical hook that preprends the navigation bafore the actual article content and when Ajax Search Pro requests it, then it’s returned. Or it’s also possible that it’s appended to the auto-generated excerpts.
First I would try this configuration to see if that changes anything: https://i.imgur.com/bvllhIB.png
If it was the auto-generated excerpts, then this will solve it.However if the hook is adding to the post content, then the only possible solution is to remove the hook and rather edit the theme template files directly to not make it the part of the content. As you can see the same thing appears on the search results page here: https://i.imgur.com/C4aE4d0.png
..and the results page layout is not controlled by Ajax Search Pro at all. My guess is that the breadcrumbs is somehow hooked into the excerpt or content generation.May 19, 2025 at 6:32 pm #54066iris_mWch
ParticipantDear Support Team, Ernest Marcinko
Thank you very much for your prompt and helpful response.
As you suspected, the breadcrumbs were being added to the post content via a hook. Following your advice, I created a custom single post template and moved the breadcrumb widget outside the post content area. This resolved the issue, and the unwanted text no longer appears in the search results.
I appreciate your clear explanation and guidance – it made all the difference.
Thanks again for your excellent support!
Best regards,
May 20, 2025 at 9:44 am #54074Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.