How To add Breadcrumb Navigation to Blogger/Blogspot


With a “breadcrumb-navigation”, readers of your blog can easily know the position of an article that’s being read and also can search the articles in the same category.


If you have been reading www.ogbongeblog.com lately, you might have seen a simple row of navigation above the title of an article that you’re reading, like the screenshot below:




The navigation like above is known better by the name of “breadcrumb-navigation”.

With a few modifications to your blogger template code, you can add the  “breadcrumb-navigation” to your blogger blog. Just follow the steps below:
  1. Please log in to blogger with your ID
  2. Click Design
  3. Click Edit HTML tab
  4. Click Download Full Template and please back up your template first
  5. Please check the small box beside Expand Widget Template
    expand
  6. Find the code ]]></b:skin>
  7. Copy and paste the code below exactly above the code ]]></b:skin>

    /* Breadcrumb from www.ogbongeblog.com
    ----------------------------------------------- */
    .breadcrumbs {
          padding:5px 5px 5px 0px;
            margin: 0px 0px 15px 0px;
          font-size:100%;
            line-height: 1.4em;
          border-bottom:3px double #e6e4e3;
          }

  8. Find the following code in your template :
    <div class='post hentry uncustomized-post-template'>  or <div class='post hentry'>

  9. Copy and paste the code below exactly below the code <div class='post hentry uncustomized-post-template'> or <div class='post hentry'>

    <b:if cond='data:blog.homepageUrl == data:blog.url'>
          <b:else/>
            <b:if cond='data:blog.pageType == &quot;item&quot;'>
                <div class='breadcrumbs'>

                 Browse &#187;  <a expr:href='data:blog.homepageUrl' rel='tag'>Home</a>
            <b:loop values='data:posts' var='post'>
              <b:if cond='data:post.labels'>
                <b:loop values='data:post.labels' var='label'>
                      <b:if cond='data:label.isLast == &quot;true&quot;'> &#187;
                        <a expr:href='data:label.url' rel='tag'><data:label.name/></a>
                      </b:if>
              </b:loop>
          &#187; <span><data:post.title/></span>
               </b:if>
            </b:loop>
                </div>
            </b:if>
          <b:else/>
          <b:if cond='data:blog.pageType == &quot;archive&quot;'>
          <div class='breadcrumbs'>
          Browse &#187; <a expr:href='data:blog.homepageUrl'>Home</a> &#187; Archives for <data:blog.pageName/>
          </div>
          </b:if>
          <b:else/>
            <b:if cond='data:navMessage'>
          <div class='breadcrumbs'>
          <data:navMessage/>
          </div>
          </b:if>
          </b:if>
  10. Click Save Template button
  11. Wait for a while until your template saved
  12. Open your blog, click the title of an article, see the result
  13. Finished. 

If your steps are correct, view one of your blog posts, the “breadcrumb-navigation” will be like this:


Note: you must be categorizing your posts with "Labels" for this to really work.

I hope it works for you.

Feel free to check other Blogger tricks and tips.

If you are in need of more help or have anything to say, just use the comment from below this post, at www.ogbongeblog.com.

Credit



Comments

  1. I have implemented in my web site http://www.fewlines4biju.com

    But my link is not working. Can any one help me out.

    Bijay
    http://www.fewlines4biju.com

    ReplyDelete
  2. I just implemented this today,It was so easy and straight forward. Thanks pal.
    http://www.dreamersmine.blogspot.com

    ReplyDelete
  3. @Oluwayomi...You are welcome bro.. Glad it worked for you.

    @Bijay..the tutorial is very straight forward.. Try and start all over again

    ReplyDelete
  4. thank you very much!!! :X :X

    ReplyDelete
  5. i have tried it but still not working. www.trueinternetworld.com

    ReplyDelete
  6. Might be an issue with your template bro. Try it on a new Test blog and you will see it working.

    ReplyDelete
  7. I just made use of this breadcrumb trick again and it worked perfectly well for my blog even though it is a third party template.Thanks once again for this blogging tip.

    ReplyDelete
  8. I guess my template is the cos of this. It isn't working with my template. how do i go about this?

    ReplyDelete
  9. i installed it and it worked. but it's only the last label tag that appears.is it possible to make all tags shows http://seasonedlife.blogspot.com/

    ReplyDelete
  10. i wasnt able to fix mine sir, is there any ways else to this? www.currentechinfo.blogspot.com . please help a brother

    ReplyDelete
  11. Although I don't find body hentry code but i placed it correctly thanks for this.

    ReplyDelete
  12. Yea, i just forgot it and i have been looking for it. Tnx my Oga
    Let me implement it immediately @ www.emmyworldwide.com

    ReplyDelete
  13. Anonymous4/09/2016

    Thanks

    ReplyDelete
  14. Is it possible to place the <b:include ... of breadcrumb outside the main section? please.

    ReplyDelete

Post a Comment

We Love To Hear From You But Don't Spam Us With Links!

Want to be notified when I reply your comment? Tick the "Notify Me" box.

If your comment is unrelated to this post or you're trying to ask question about an old post, please drop it at our discussion platform here.

THANKS.