• This topic has 1 reply, 2 voices, and was last updated 5 years ago by vako.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48477
    Jennifer Widera
    Participant
    Premium Member

    Where in the header.php can I add the following code that was provided by Yoast for adding breadcrumbs sitewide? Or do you have another suggestion for adding? I want them to appear on pages, categories, and posts
    <pre style=”box-sizing: inherit; overflow: auto; font-family: monospace, monospace; font-size: 15px; background-color: #edf5fa; padding: 2px 5px; color: #000000;”><?php
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ );
    }
    ?>

    #48484
    vako
    Keymaster
    Premium Member

    Hi Jennifer,

     

    The best way for adding custom codes is to use the 3rd party plugin: https://wordpress.org/plugins/insert-headers-and-footers/

     

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.