Breadcrumbs on OceanWP theme

#583165
  • Resolved Anonymous
    Rank Math free

    Hi dear, I’m using OceanWP theme and i don’t know where to add this code ******(Use the following code in your theme template files to display breadcrumbs. Learn More <?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?> OR [rank_math_breadcrumb])***** i did check your tutorial, but i didn’t find any child theme, i paste the code in header.php file between <head></head> but the message didn’t disappear?
    i also,
    customizing>general options>page Title>BREADCRUMBS
    disabled this two option:
    “ENABLE BREADCRUMBS” and “SHOW ITEM TITLE” of my theme (oceanWP)

Viewing 1 replies (of 1 total)
  • Hi there,

    Thanks for reaching out to Rank Math support. I’m glad you chose us for your SEO needs.

    You asked about how to add the code for breadcrumbs on your site. Here’s what you need to do:

    • Find the theme template files that correspond to the pages where you want the breadcrumbs to show up. For instance, if you want them on all your pages, look for the page.php file. If you want them on all your posts, look for the single.php file. And so on.
    • Make sure you place the code in the right spot in your template files. If you’re using the header.php file, don’t put it inside the <head></head> tag, but rather after the opening <body tag.

    Please note that different themes may have different template files and locations, so you may need to experiment a bit to find the best place for the code. If you’re not sure, you can always contact OceanWP support and ask them for guidance on how to add Rank Math breadcrumbs.

    You also did the right thing by disabling the breadcrumbs option in your theme settings. You don’t want to have two sets of breadcrumbs on your site, Rank Math will handle everything for you, including adding the schema markup for breadcrumbs.

    I hope this helps you set up the breadcrumbs on your site. If you have any other questions or need more help, please don’t hesitate to ask. I’m always happy to help.

    Thanks for using Rank Math. Have a great day!

    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 ‘Breadcrumbs on OceanWP theme’ is closed to new replies.