Conflict Woodmart theme and Rank Math Breadcrumbs

#756884
  • Resolved Javi24
    Rank Math free

    Hello,

    I have now a conflict Woodmart theme and Rank Math Breadcrumbs, woocommerce shop page not load more products if I have this Rank Math breadcrumbs code(Woodmart Child function PHP):

    How to fix that?

    /**
    * Rank Math breadcrumbs
    */
    function woodmart_current_breadcrumbs( $type ) {

    $function = ( $type == ‘shop’ ) ? ‘woocommerce_breadcrumb’ : ‘woodmart_breadcrumbs’;

    if ( function_exists( ‘rank_math_the_breadcrumbs’ ) ) {

    rank_math_the_breadcrumbs();

    } else {

    $function();

    }
    }

Viewing 16 replies (of 16 total)
  • Hello,

    To be able to do this you need to follow the instructions we shared previously to replace the breadcrumbs function on each of the layout files where you would like our breadcrumbs to take precedence.

    We explained what functions need to be switched here: https://support.rankmath.com/ticket/conflict-woodmart-theme-and-rank-math-breadcrumbs/?view=all#post-768773

    Before doing this on a live website please make sure that you test it thoroughly on a staging website and also make a backup of the plugin files which would get overridden with each update, so you can replace them back in again in case it’s necessary.

    You could also perform those changes in a child theme to prevent this from getting overridden with each theme update.

    If you need further assistance with this matter you might need to consult with a web developer that is familiar with WordPress and PHP code modifications.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 16 replies (of 16 total)

The ticket ‘Conflict Woodmart theme and Rank Math Breadcrumbs’ is closed to new replies.