Breadcrumbs is a secondary type of navigation that shows the actual location of a user in a website. Breadcrumbs are usually found in large website that have lots of content category wise. And it’s an easier way for user to navigate back to the category or home page. They are usually separated by “>” or “/” .
Breadcrumbs have one more advantage if they are implemented in a proper way. Breadcrumbs can also be crawled and seen in Google search engines. And one can get more traffic from search engines, because search engines love the way if a website is organized in a hierarchical manner. In this post I will show you how to implement SEO Breadcrumbs for WordPress.
Step 1: Add the following CSS code to custom.css. This is just for formatting the breadcrumb. You can customize it as per your need.
.seobreadcrumbs {font-family:Verdana,Arial;font-size:1em;font-weight:bold;text-transform: uppercase;padding:1.2em 1em 1em 1em;border-bottom:1px dotted #666;background:#FCFFB0;margin-bottom: 10px;}
.seobreadcrumbs a {color:#cc0000;border-bottom:1px dotted #fff;}
.seobreadcrumbs a:hover {border-bottom:1px dotted #cc0000;}
Step 2: Add the following code to functions.php
if ( ! function_exists( 'seobreadcrumbs' ) ) :
function seobreadcrumbs() {
$separator = '›';
$home = 'Home';
echo '<div xmlns:v="http://rdf.data-vocabulary.org/#">';
global $post;
echo ' <span typeof="v:Breadcrumb">
<a rel="v:url" property="v:title" href="http://www.iblognet.com">Home</a>
</span> ';
$category = get_the_category();
if ($category) {
foreach($category as $category) {
echo $separator . "<span typeof=\"v:Breadcrumb\">
<a rel=\"v:url\" property=\"v:title\" href=\"".get_category_link($category->term_id)."\" >$category->name</a>
</span>";
}}
echo '</div>';}
endif;
function show_crumbs() {
if(is_single() || is_tag() || is_search() || is_404() || is_page() || is_category()) { ?>
<?php seobreadcrumbs(); ?>
<?php }}
add_action('thesis_hook_before_content','show_crumbs');
Step 3: Now open single.php and search for <? PHP the_title (); ?> and add the following code just above it:
<? PHP seobreadcrumbs (); ?>
Now check your website, you should see breadcrumb like below:

And after a week or two you could see you site listing like below:

The links will be replaced by the breadcrumbs.
If you’re using Thesis Theme add the code from Step 1 in custom.css and the code from Step 2 in custom_functions.php and save it!! If you have any problem setting up the breadcrumb, leave a comment below and I will help you out.





{ 19 comments… read them below or add one }
This really helped me a lot. I’ve been having problems with SEO and Wordpress, it’s just seems so complicated. Now, I have something to work on from your article.
Hi Sahil,
Really nice information, I have been working on my new wordpress blog. Currently I’m working on its designing, however by default I got breadcrumb feature enabled on my theme.

Aasma invites you to read ERP Software Companies
since im using thesis theme i will use this…i did try once but it fail..so gonna try it again
yang invites you to read HTC WINDOWS PHONE 8X
Really thanks for the information. Nice post
Well written and it’s helpful for me while reading. As per @Aasma said I think breadcrumbs now available by defaults in few wordpress themes. But still helpful for those who doesn’t have that option in their theme.
Susan invites you to read New Design of Travel Universally Website
Hey, I know that this is old post, and I think it will be great for your reader if you featuring WordPress SEO plugin by Yoast. You can easily add breadcrumb to your site by clicking a button using that plugin, you know… Which is better than dirtying your hand editing code (and probably messed up something) — even if you’re using Thesis.
If you already have some kind of review on that plugin, let me know!
Thank you Sir,
I have applied it on my TecH blog Techbymak and It is working very well.
Techbymak invites you to read Rel=”Author” Google Authorship Guide for Blogger and WordPress
Sir I’m Using one more website and there is a error like
Parse error: syntax error, unexpected T_STRING in /home/develop1/public_html/sitename.com/wp-content/themes/theme/single.php on line 7
Please help me what to do
Akshay Makadiya invites you to read Rel=”Author” Google Authorship Guide for Blogger and WordPress
An excellent tutorial for people who want to dive into the coding part. If you’re less tech savvy you can go for a theme that supports breadcrumb navigation by default or use a plugin that lets you easily add breadcrumb.
Nishadha invites you to read SWOT by Creately
Thank you Sahil,
I have just implemented this code in my blog, Although I am not using Thesis It worked like charm.
Regards,
Pavan Kumar.
Pavan invites you to read Set First Image as Featured Image for all wordpress posts
I’ve been surfing online greater than three hours these days, but I never discovered any interesting article like yours. It’s lovely worth enough for me. In my opinion, if all webmasters and bloggers made excellent content as you probably did, the net can be a lot more useful than ever before.Anyway great article with great and rich content.Good job admin.keep it up
sunil invites you to read Top 5 Best Google Adsense Alternatives
is it really worthful to do the seo for breadcrumbs?
Vicky invites you to read Nokia Asha 206 Dual Sim Phone Specification
It’s useful for search engines.
Sahil Umatia invites you to read Giveaway: CommentLuv Premium – Unlimited License
Sir Of Course you are right that It is good for SEO as well Search engine. But my question is that Why most of the peoples are against the Breadcrumbs. If you write a post on Merits and Demerits of Breadcrumbs then It will be useful for Us. thank you sir.
Nice Tutorial Bro But I think Bredcrumbs aren’t SEO friendly. These are good for Online Shopping websites but for a blog its not good. I remeber the days when I lost my 30% of traffic just because of using Bredcrumbs. I removed them and after sometime I got my traffic back.

Narender Chopra invites you to read HSTSB Results 2013- Haryana Mewat Cadre PGT Result
The easier way to do this is using WordPress SEO plugin by Yoast.
Breadcrumbs is good for SEO since it make navigation through your website much easier for readers
Rudd invites you to read WordPress101: Change Default Category in WordPress
Thanks for sharing this detailed tutorial on how to set up seo Breadcrumbs in WordPress.
Lei Broch invites you to read New Release
Wow this is fantastic, I have been wondering, really educated by your post, I never heard about breadcrumbs.
Leena Dasot invites you to read Latest List of Justin Bieber Songs – All Albums & New Songs 2013
Thanks dear.. you make this tutorial easier for newbie bloggers like me. Dear my blog is hosted on blogger. Please tell me should I use breadcrumb on Blogger blog? Will it be beneficial for me in blogging niche? Dear please reply ASAP.

Ankit invites you to read Social Bookmarking Tips For Better SEO