Problems with breadcrumbs and Generatepress

#93379
  • Resolved Stephan Bloemers
    Rank Math pro

    I am using Rankmath version 1.0.49 and the free version of GeneratePress.
    I noticed that the breadcrumbs are displayed incorrectly. The breadcrumbs will not only be displayed in the respective article, but also on the homepage of the blog.
    It looks like this:
    Title of the article
    Breadcrumbs
    Extract from the article
    Heading of the next article
    Breadcrumbs
    Extract from the next article
    etc

    You can see this on my blog https://pokern24.org

    Why are the breadcrumbs also displayed on the home page? I don’t really want that. How can I remove this from the start page?

    In the functions.php I added the following:

    add_filter ('the_content', function ($ content) {
       if (function_exists ('rank_math_get_breadcrumbs')) {
         $ content = rank_math_get_breadcrumbs (). $ content;
       }
       return $ content;
    });
Viewing 2 replies - 1 through 2 (of 2 total)
  • So, I was able to solve the problem in the meantime.
    Deb I removed the code listed in functions.php and added the following to single.php:
    <? php if (function_exists ('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs (); ?>
    Now everything is displayed fine.

    Sajid Khan
    Rank Math business

    Hello,

    We are super happy that you resolved your issue.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Problems with breadcrumbs and Generatepress’ is closed to new replies.