- mariehdb May 28, 2014 at 6:04 pm
Hi,
I’d like to add breadcrumbs to my website.
I have the Yoast WordPress SEO plugin that should take care of everything, but you need to add this bit of code:
<?php if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('’,”);
} ?>…but it doesn’t work, nothing happens 🙁
Any suggestions/ideas about how I could add breadcrumbs, with or without using this plugin?
Juanfra Aldasoro May 28, 2014 at 6:33 pmHi,
Thanks for writing.
Unfortunately we can’t provide support on plugins made by other companies. I’d recommend you to check where is that you’ve added the snippet.
Best,
Juan.mariehdb May 28, 2014 at 6:35 pmHi Juan,
I completely understand that.
However do you have an alternate way to add breadcrumbs in the theme? Given that’s important for SEO, I think it would be a nice feature.Thanks!
Juanfra Aldasoro May 28, 2014 at 6:37 pmHi,
Since framework version 1.1.2 we’ve included the function nice_breadcrumbs()
If your site is using that version you may want to give a try.
Best,
Juan.mariehdb June 21, 2014 at 10:23 amI just got around to update the framework! Yet can’t find where to activate the breadcrumbs?
Thanks!
Juanfra Aldasoro June 21, 2014 at 1:27 pmHi Marie,
Thanks for the follow up. The function nice_breadcrumbs() is included since version 1.1.2 of the framework, onwards. That means that you can use it in order to display the breadcrumbs, from the templates:
nice_breadcrums();
I thought that you could implement that when you quoted the function from yoast’s plugin.
Best,
Juan.mariehdb June 21, 2014 at 2:31 pmok, I think I get it 🙂 Should I just copy/paste it in the templates of pages where I want breadcrumbs to appear? (sorry, I’m no php specialist, I like instructions written for 2 years olds LOL )
Juanfra Aldasoro June 21, 2014 at 2:39 pmYes, that’s right. Please have in mind also that you’ll need to have styles for them to display properly.
For example, in Flatblase, our latest theme, we use the following CSS:
.nice-breadcrumb{ margin-bottom: 20px; color: #aaa; text-transform: uppercase; font-size: 12px; } .nice-breadcrumb a, .nice-breadcrumb .sep{ color: #D0D0D0; margin-right: 4px; border: none } .nice-breadcrumb a:hover{ border: none; }
Best,
Juan.
You must be logged in to reply to this topic.