Support » Theme: Hueman » Adding Yoast SEO Breadcrumbs

  • Resolved rckronick

    (@rckronick)


    I am trying to show breadcrumbs above the post titles on blog posts. I am using the Yoast SEO plugin to do so. The how-to can be found here:

    Implement Yoast SEO breadcrumbs

    I am using a child theme.

    I am trying to paste the Yoast breadcrumbs code into the child theme’s single.php but I can’t seem to find the right place to do so. When I pasted it, the code itself showed up as text on the front end of the site.

    Where should I paste the code to make the breadcrumbs show above the post titles?

Viewing 6 replies - 1 through 6 (of 6 total)
  • FadingMusic

    (@fadingmusic)

    Hello, rckronick,

    It so happens that I recently did this myself.
    Enable maintenance mode and replace line four of archive, single

    <?php hu_get_template_part('parts/page-title'); ?>

    To

    <div class="page-title pad group">
    
     <?php if ( function_exists('yoast_breadcrumb') ) {
      yoast_breadcrumb('<p id="breadcrumbs">','</p>');
    }
    ?>
    
    </div><!--/.page-title-->

    Tweak some settings afterward until the breadcrumb is right, disable maintenance mode and test it with structured data testing tool.

    Hope that helps.
    Take care.

    • This reply was modified 4 years ago by FadingMusic. Reason: Typos
    Denzel Chia

    (@denzel_chia)

    Hi,

    Sorry, to interrupt this thread.

    Just to let you know that for any customization, you need to use a child theme and do a template over-riding.

    Do not edit the Hueman theme, your edit will be removed in a theme update.

    Please refer to the following documentation for more details on using child theme.
    http://docs.presscustomizr.com/article/239-using-a-child-theme-with-hueman

    Thank you

    FadingMusic

    (@fadingmusic)

    I am using a child theme.

    rckronick

    (@rckronick)

    Worked perfectly. Thank you so much, FadingMusic!

    And thanks Denzel Chia for the reminder. I am using a child theme.

    FadingMusic

    (@fadingmusic)

    You’re welcome, glad I could help and thank you Denzel Chia for the reminder.
    It’s already affecting Google SEO and it looks great!

    Denzel Chia

    (@denzel_chia)

    Thank you @rckronick and @fadingmusic
    Glad to be of some help. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding Yoast SEO Breadcrumbs’ is closed to new replies.