Hi,
I’d like to know which part of the plugin should I edit if I want to use Yoast’s Breadcrumbs feature?
Here’s the code: `<?php if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);
} ?>`
I tried searching the theme’s header.php but it’s not there I think.
Hi,
You have to replace the breadcrums code of the theme with yoast code for breadcrumbs.
This is an e g for post pages: http://screencast.com/t/5aa5b1Js1
Also you have to remove the theme’s breadcrumbs, you can do it from page template by deleting th code or from Theme Panel > Post Settings > Breadcrumbs > Show or hide breadcrumbs on post.
You will get this result: http://screencast.com/t/beNVjuXWcnr
You also have to add this csutom CSS in Theme Panel > Custom CSS if you want to move the breadcrumbs a bit higgher on page:
#breadcrumbs {
margin-top: -30px;
margin-bottom: 20px;
}
You will have to do this for every template on which you want yoast breadcrumbs to show.
Here is an e g for Search Template : http://screencast.com/t/tEPahwPEauR
Thnaks
Hi,
You need to make the same changes for pages and other templates to. If you want you can use an editor like Notepad++ and search in all files to see where the breadcrumbs are defined for each template and make the changes.
http://screencast.com/t/G52vL4Ha1bL
Hope this help!
Thanks for the message!
i am getting this error …
[20-Nov-2014 15:48:03 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:48:04 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:48:06 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:48:09 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:48:27 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:48:46 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:48:48 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:48:49 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:49:00 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:49:12 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 18
[20-Nov-2014 15:49:22 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:49:23 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:49:24 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:49:32 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:49:50 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:49:52 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:49:53 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:50:01 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:50:03 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
[20-Nov-2014 15:50:48 UTC] PHP Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/tollyfans/public_html/wp-content/themes/Newspaper4.3/loop-single.php on line 19
Hi,
Please make sure you make a backup of your current theme installation then re-upload your theme files via FTP: https://forum.tagdiv.com/how-to-update-the-theme/
You could also try to upload just the loop-single.php and overwrite the old file, upload it in the root of the theme.
Thanks
Hi Lucian,
When i follow your steps and place the yoast breadcrumbs code there in the loop-single, it doesn’t show on the post pages.
Since i want to use this breadcrumbs also for the bbpress forums, can you tell me where and in which part exactly should i put the code?
Hi,
If you add the code in loop-single.php yoast breadcrumbs will appear on default post style, you have to add the code in the post template that you use. You also need to enable this option from SEO plugin: http://screencast.com/t/jeWQDcUfsg
For example: http://screencast.com/t/YcCAava4 – http://screencast.com/t/SoGRZ277a
Result: http://screencast.com/t/nETHbDd6S03
Hope this helps!
all these links are bringing 404 errors… how will it help others?
Hi,
The links older than an year old do not work anymore because screencast gets filled up in this period and removes the old links. On the other hand modification made an year back will not apply to the current version of the theme as code was changed on the many updates the theme had since then.
Thank you.
