How to set breadcrumbs with your plugin?

#66112
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Laura,

    Thanks for getting in touch with us.

    You can use Breadcrumbs from Rank Math by going to WordPress Dashboard > Rank Math > General Settings > Breadcrumbs. Simply enable breadcrumbs, change the options as per your preference and save the changes.

    Then, grab the code and paste it in your theme’s single.php and page.php files (ideally)

    If you are unsure about this step, please talk to your theme provider and ask them where the breadcrumbs code should be placed. Even if you use a free theme, the support should be able to help you with the ideal placement of the breadcrumbs code. For your reference, here is the breadcrumbs code used to insert Rank Math’s breadcrumbs:

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

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

    Hello,

    Please head over to Rank math > Dashboard and switch to Advanced mode
    img

    Looking forward to helping you. Thank you.

    ​​​​​​

    Laura
    Rank Math free

    Breadcrumbs showed up and this happened when pasting your code:

    <?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>

    in my theme functions.php file.

    Your PHP code changes were rolled back due to an error on line 33 of file wp-content/themes/GreenLight/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘<‘, expecting end of file

    Hello,

    The code is meant to be pasted in your theme pages and posts template files not your functions.php. If you are not sure about the files, please get in touch with your theme dev team to guide you where to.

    Hope that helps 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 4 replies - 1 through 4 (of 4 total)

The ticket ‘How to set breadcrumbs with your plugin?’ is closed to new replies.