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?
Asked
Active
Viewed 565 times
-2
-
4add here what code you used – Gnanasekaran Loganathan Aug 08 '17 at 10:16
-
i have the yoast seo plugin instaled so i used this code: ',' '); } ?> – Gps Caini Aug 08 '17 at 10:20
2 Answers
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