This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Breadcrumb Text Appearing in Search Results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Breadcrumb Text Appearing in Search Results

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #54057
    iris_mWchiris_mWch
    Participant

    Hello,

    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,
    Iris

    #54062
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi 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.

    #54066
    iris_mWchiris_mWch
    Participant

    Dear 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,

    #54074
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.