By using that Google search start showing a clickable green link below your every post title in search results for visitors to click directly on your categories, Which provide your blog some extra organic search traffic. Below is the screenshot of a random search result in Google search showing how WordPress SEO breadcrumbs look like.
Well, Google introduced Rich Snippets in 2009, But till now high numbers of webmasters are not taking advantage of Rich Snippets tool. Rich Snippets provide a good idea about your website look in search engines.
Table of Contents
WordPress SEO Breadcrumbs That Google Displays
There are numbers of rich snippets you could create with the help of schema.org implementation Guidelines, which allow blog, website owners to implement any code, which allows search engines to get an idea about your Website breadcrumbs and display that in search results. Google’s advice to mark up microdata or RDFa with your breadcrumbs code.If you have done anything wrong while implementing breadcrumbs code with microdata or RDFa, it will not work.
I am going to show you how to add WordPress SEO Breadcrumbs in Thesis theme and Normal WordPress themes.
Let’s start with thesis theme: Do take a backup of your current custom_functions.php before editing.
Open your custom/custom_functions.php and paste below inside your Thesis theme custom_functions.php.
1. Thesis Theme:-
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.wpblogtips.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');
<Source> Now click on the Save Button.
Now paste the CSS code below inside of Custom.css file.
.seobreadcrumbs {font-size: 13px;bold;}
2. Normal WordPress Theme: – If you are a normal WordPress theme user then go to Edit Themes -> Theme Functions (functions.php) and paste above at the bottom of that file. Click update file button.
Now open your single.php and search for <? PHP the_title (); ?>
Code. Once you find that paste <? PHP seobreadcrumbs (); ?>
Just above and click on the update file button and check your website. If you have done everything right then WordPress SEO Breadcrumbs start showing on your single posts.
3. WordPress plugin: – If you still do not find yourself comfortable using the above-said methods then, I advise you to use a WordPress plugin for achieving the same.
There are Breadcrumb Plugins available to use and making this activity easy, use RDFa Breadcrumb WordPress plugin. For making your website Breadcrumbs to WordPress SEO Breadcrumbs.
Don’t forget to check my other post’s on WordPress SEO and Google SEO Techniques.
After finishing above steps you can check your website with Rich Snippets and it will take 1 or 2 weeks to Google to crawl your website again.
Comments are closed.