Where to put this code ?

#89662
  • Resolved Shivratan Rajvi
    Rank Math free

    <?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?> Where i put this code in WP Theme in <Head> section ?

Viewing 1 replies (of 1 total)
  • Sajid Khan
    Rank Math business

    Hello,

    Thank you for contacting Rank Math today.

    You can add the breadcrumbs code in the header.php (if it has content, add it at the end without the <?php or ?>), so the code would be like this:

    <?php
    .... your header.php content ....
    if (function_exists('rank_math_the_breadcrumbs')){
      rank_math_the_breadcrumbs();
    }
    
    // This last line is optional, you don't need to end the file with ?>
    ?>

    If you are not sure where to add it, please ask your theme support

    Looking forward to helping you. Thank you.

    ​​​​​​

    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 1 replies (of 1 total)

The ticket ‘Where to put this code ?’ is closed to new replies.