How to enable and display wordpress SEO breadcrumbs?

To enable and display wordpress SEO breadcrumbs, you need to

    1. Edit your wordpress theme
    2. Enable Breadcrumbs in Yoast SEO

Note: If you edit the theme manually, those changes may be overwritten when you update the theme in future. To fix that, either create a child theme or follow below steps to edit the theme every time when it is updated.

Enabling breadcrumbs in Yoast SEO

  1. Goto WP-admin page
  2. On the left side, Click on “SEO”wordpress-seo-advanced-settings
  3. Click on “Advanced”
  4. Click on “Breadcrumbs” tabwordpress-SEO-breadcrumbs-implementation-settings
  5. Check “Enable Breadcrumbs” box
  6. Adjust the settings to your preference
  7. Click on “Save changes” button

Wait ! wait!. To display breadcrumbs, you need to add a small code to your theme files. Otherwise, you can’t see the breadcrumbs on your site.

 Edit WordPress Theme

  1. Copy below code.

<?php if ( function_exists(‘yoast_breadcrumb’) ) {

yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);

} ?>

Note: Above code checks whether Yoast SEO breadcrumbs is enabled on your site. If it is enabled, then only it displays breadcrumbs on your site. Breadcrumbs are shown at the location where you place the above code.

  1. Using FTP, goto /wp-admin/themes. You get list of themes installed on your wordpress site.
  2. Open the theme folder which you activated for your wordpress site.
  3. If you want to show breadcrumbs just above the post title, open single.php/loop-single.php file in text editor
  4. Find a comment similar to given below

<!– Widgets: Before Post –>

Note: Below screenshot is on wordpress Asteroid template


  1. Paste the code (step 1) below it to show breadcrumbs below the post title
  2. Paste the code above it to show breadcrumbs above the post title
  3. Upload the file

Done. Now, open any post in your wordpress site. You will see the breadcrumbs as you configured.

About the Author


A passionate blogger. Love to share solutions and best practices on wordpress hosting, issues and fixes, excel VBA macros and other apps