Hi, everyone! Today I would like to show you,
how to make breadcrumbs!
Nope, not this BREADCRUMBS =x=
how to make breadcrumbs!
Nope, not this BREADCRUMBS =x=
This breadcrumbs~
What is 'breadcrumbs' you ask?
Breadcrumb navigation helps your readers to track their position on your blog by showing a breadcrumb trail in this way (You're HERE : 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 tutorial a bit tricky for newbie, but I'll try my best to show you step by step slowly~~
So, Let's Start!
First!
So, Let's Start!
First!
Go to your Blogger
<b:includable id='main' var='top'>
<b:includable id='breadcrumbs' var='post'>
<!-- Breadcrumbs hack. By Hoctro 9/11/2006 http://hoctro.blogspot.com -->
<b:if cond='data:blog.pageType == "item"'>
<p class='breadcrumbs'>
<span class='post-labels'>
<b:if cond='data:post.labels'>
You are here:
<a expr:href='data:blog.homepageUrl' rel='tag'>Home</a> >
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast == "true"'>
<a expr:href='data:label.url' rel='tag'> <data:label.name/></a>
</b:if>
</b:loop>
<b:if cond='data:post.title'>
> <b><data:post.title/></b>
</b:if>
</b:if>
</span>
</p>
</b:if>
<!-- End of Breadcrums Hack -->
</b:includable>
----------------------------------------------------------------
END HERE
* This code will only display the last label of the post in the breadcrumb. If you want to display all the labels, DELETE THE HIGHLIGHT CODE
So, it'll look like this,
AFTER DELETE
HIGHLIGHT CODE
NEXT,
2. Find this HIGHLIGHT code
<b:if cond='data:post.dateHeader'>
Then add the CODE BELOW above those HIGHLIGHT CODE
COPY START HERE
---------------------------------------------------------
<b:include data='post' name='breadcrumbs'/>
.breadcrumbs {
border-bottom:1px dotted #000;
margin:2em 0 0.5em;
padding:0 0 0.5em;
}
---------------------------------------------------------
END HERE
Like This,
(Feel free to modify the first & third parameters of the last two lines (in bold) to expand/shorten the top & bottom heights.)
And DONE! Save it!!
Thank you for your time to read my blog^^
No comments:
Post a Comment