Using Yoast Breadcrumbs

Posted in: Newspaper
Post count: 184

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.

Post count: 9544

I think Marius addressed this someplace in detail, so you might do a search in the forum for “Yoast breadcrumbs” to find the recent help on that, if in a hurry.

Post count: 184

Hi, thanks for the quick reply.

Yeah, I’ve actually read that topic but I’m not sure which one I’ll edit for it to show on all pages/posts and other posts types.

Post count: 6600

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

Post count: 184

Hi Lucian,

I did your simple tutorial and worked great on posts.

I need help though on custom post types like in the forums and some pages.

Post count: 3343

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!

Post count: 220

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

Post count: 6600

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

Post count: 14

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?

Post count: 7909

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/YcCAava4http://screencast.com/t/SoGRZ277a
Result: http://screencast.com/t/nETHbDd6S03

Hope this helps!

Post count: 224

all these links are bringing 404 errors… how will it help others?

Post count: 22421

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.

Viewing 12 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic.