-2

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?

Taz
  • 3,718
  • 2
  • 37
  • 59

2 Answers2

0

Use Breadcrumb NavXT WordPress Plugin For BreadCrumb

Dhruvang Gajjar
  • 568
  • 1
  • 8
  • 20
0

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';
 }  

?>

Dipak Mahajan
  • 241
  • 3
  • 4