Breadcrumb navigation helps your readers to track their position on your blog by showing a breadcrumb trail in this way (Home »Label Name » Post Title).This navigation appears just above of the your post title and the links are a trail from the homepage to post title.There is also option for showing the multiple labels in this navigation i.e. if any post have more than one label then it will show all of them.The original breadcrumbs idea is given by the HOCTRO and Aneesh of bloggerplugins futher worked on it.
- Go to Blogger Dashboard > Template
- As always download a copy of your template
- Click on Edit HTML
- Hit Proceed
- Now find below code,
<b:includedata='top'name='status-message'/>
<b:includedata='posts'name='breadcrumb'/>
Now find below code (if you find two occurrences of this, then locate the second one)
<b:includableid='main'var='top'>
blogger.com/ --><b:includableid='breadcrumb'var='posts'><b:ifcond='data:blog.homepageUrl != data:blog.url'><b:ifcond='data:blog.pageType == "static_page"'><divclass='breadcrumbs'><span><aexpr:href='data:blog.homepageUrl'rel='tag'>Home</a></span> » <span><data:blog.pagename/></span></div><b:else/><b:ifcond='data:blog.pageType == "item"'><!-- breadcrumb for the post page --><b:loopvalues='data:posts'var='post'><b:ifcond='data:post.labels'><divclass='breadcrumbs'xmlns:v="http://rdf.data-vocabulary.org/#"><spantypeof="v:Breadcrumb"><aexpr:href='data:blog.homepageUrl'rel="v:url"property="v:title">Home</a></span><b:loopvalues='data:post.labels'var='label'><b:ifcond='data:label.isLast == "true"'>» <spantypeof="v:Breadcrumb"><aexpr:href='data:label.url'rel="v:url"property="v:title"><data:label.name/></a></span></b:if></b:loop>» <span><data:post.title/></span></div><b:else/><divclass='breadcrumbs'><span><aexpr:href='data:blog.homepageUrl'rel='tag'>Home</a></span> » <span>Unlabelled</span> » <span><data:post.title/></span></div></b:if></b:loop><b:else/><b:ifcond='data:blog.pageType == "archive"'><!-- breadcrumb for the label archive page and search pages.. --><divclass='breadcrumbs'><span><aexpr:href='data:blog.homepageUrl'>Home</a></span> » <span>Archives for <data:blog.pagename/></span></div><b:else/><b:ifcond='data:blog.pageType == "index"'><divclass='breadcrumbs'><b:ifcond='data:blog.pageName == ""'><span><aexpr:href='data:blog.homepageUrl'>Home</a></span> » <span>All posts</span><b:else/><span><aexpr:href='data:blog.homepageUrl'>Home</a></span> » <span>Posts filed under <data:blog.pagename/></span></b:if></div></b:if></b:if></b:if></b:if></b:if></b:includable><!-- Breadcrumb Navigation By http://www.helperblogger.com/ -->
Now find below code,
add below CSS code just above it,]]></b:skin>
.breadcrumbs {background:#F7F7F7;float:left;border:1pxsolid#E6E6E6;width:575px;font-size:11px;margin:10px10px10px10px;padding:5px10px5px10px;}






0 comments:
Post a Comment