skip to Main Content

enter image description here

Like you can see in the picture, I want to move the breadcrumb from header to the page content.
I tried to insert the code of Yoast SEO into different part of my theme but I didn’t succeed. I wanted to put it in page.php or single.php but it didn’t work; it only work in header.php. Can someone help me please?

2

Answers


  1. Use Breadcrumb NavXT WordPress Plugin For BreadCrumb

    Login or Signup to reply.
  2. If you are using yoast seo plugin, so using this plugin you can easily get breadcrmb using following code.

    <?php
     if ( function_exists('yoast_breadcrumb') ) {
      yoast_breadcrumb('<p id="breadcrumbs">','</p>');
     }
     else{
      echo 'Failed';
     }  
    

    ?>

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search