How to Enable Breadcrumbs with GeneratePress theme?

#338253
  • Resolved Georgi
    Rank Math free

    Hello Rankmath team 🙂

    I’m using GeneratePress theme and having trouble enabling the breadcrumbs on products & products categories and everywhere else where they are needed. I tried using the code you give in the single.php and in the header.php but in one of the case the sites gets a fatal error, in the other I can’t save the changes.

    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

    Can you help please enabling them?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    Please try adding the code without PHP opening and closing tag:

    if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs();
    

    Let us know how that goes. Looking forward to helping you.

    Georgi
    Rank Math free

    Hello,

    Thanks for the suggestion. I was able to save the header.php now but upon inspection I can see that both RankMath & GeneratePress breadcrumbs are showing up now: https://prnt.sc/26of7p8

    Hello,

    Can you please share the affected URL so we can check and assist you further?

    Looking forward to helping you.

    Thanks.

    Georgi
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    The second set of breadcrumbs is being added by WooCommerce. Please follow this guide to disable the WooCommerce breadcrumbs: https://www.isitwp.com/remove-woocommerce-breadcrumbs/

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

    Georgi
    Rank Math free

    Thanks!

    Azib Yaqoob
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    Thank you.

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

The ticket ‘How to Enable Breadcrumbs with GeneratePress theme?’ is closed to new replies.