adding breadcrumbs code into function.php

#173488
  • Resolved Palate’s Desire
    Rank Math pro

    Hi , Im unable to update rankmath breadcrumbs. Tried to add code in function.php but its throwing error. Currently I’m using genesis theme breadcrumbs settings. I wish to go with rankmath breadcrumbs, how can I do it?

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

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    If you are using Rank Math’s breadcrumbs feature by inserting the code in the functions.php file, can you try using this code?:

    /*
    * Add Rank Math Breadcrumbs just before the Single Post Content.
    */ 
    function rm_breadcrumbs( $content ) {
        if ( function_exists('rank_math_the_breadcrumbs') && is_singular() ) rank_math_the_breadcrumbs();
        return $content;
    }
    add_filter( 'the_content', 'rm_breadcrumbs' );

    After doing so, please turn off Genesis Theme’s breadcrumbs feature to avoid conflicts.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi ,
    Its working.thank you!

    Hello,

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

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘adding breadcrumbs code into function.php’ is closed to new replies.