Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #48477
    Jennifer Widera
    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>’ );

    WP Royal Team

    Hi Jennifer,


    The best way for adding custom codes is to use the 3rd party plugin:


    Kind Regards

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