• Hi,

    I am looking to add in a piece of code to implement the Yoast SEO breadcrumbs. The code is:

    <?php
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ );
    }
    ?>

    For this particular theme, where would be the best place to put it do you think? The instructions suggest files such as single.php, page.php, or header.php. I wasn’t sure if one spot was better than the other, or if there was a better place. I am also trying to put it in a place where it won’t get erased by theme updates.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi thepanickedfoodie.

    Thank you for contacting us.

    I think that the best place to enter that code would be the header.php file so that you have Breadcrumbs active throughout the website by entering the code to just one file.

    And there’s no place where it won’t get erased by the theme update because the update overwrites all files. 🙂 So the best way to prevent that would be to use the child theme.

    Hope this helps but if you have any additional questions, feel free to ask.

    Kind regards.

Viewing 1 replies (of 1 total)

The topic ‘Yoast SEO Breadcrumbs’ is closed to new replies.