Add BreadCrumb Navigation widget in blogger



အေပၚပံုကိုၾကည့္ပါခင္ဗ်ာ..Post Title ရဲ႕ အေပၚမွာ ႐ွိတဲ့ဟာကေတာ့ BreadCrumb Navigation widget ပါ..ကိုယ့္ Blog မွာထည့္ခ်င္တယ္ဆိုရင္ ဒီလိုသြားပါခင္ဗ်ာ..

Login to blogger -> Layout -> html -> Check on Expanded Widget ၿပီးရင္ ဒီ code ကို႐ွာပါ..
]]>

ေတြ႔ၿပီဆိုရင္ သူ႔အေပၚမွာ ဒီေအာက္က code ကိုထည့္ပါ..
.breadcrumbs
{
border: 1px solid #000000;
padding: 5px 15px;
margin: 10px 0;
line-height: 1.4em;
}

ေနာက္ ဒီေအာက္က code ကို ထပ္႐ွာပါ..

<b:includable id=’main’ var=’top’>
<!– posts –>
<div class=’blog-posts hfeed’>
<b:include data=’top’ name=’status-message’/>
<data:adStart/>
ေတြ႔ၿပီဆိုရင္ အဲ့ဒီ code တစ္ပိုဒ္လံုးကိုဖ်က္ၿပီး သူ႔ေနရာမွာ ဒီေအာက္က codeကို ထည့္လိုက္ပါ..

<b:includable id=’breadcrumb’ var=’posts’>
<b:if cond=’data:blog.homepageUrl == data:blog.url’>
<!– No breadcrumb on front page –>
<b:else/>
<b:if cond=’data:blog.pageType == "item"’>
<div class=’breadcrumbs’

Browse » <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 == "true"’> » <a expr:href=’data:label.url’ rel=’tag’><data:label.name/></a> </b:if> </b:loop>
» <span><data:post.title/></span> </b:if> </b:loop> </div>
<b:else/>
<b:if cond=’data:blog.pageType == "archive"’>
<div class=’breadcrumbs’>
Browse » <a expr:href=’data:blog.homepageUrl’>Home</a> » Archives for <data:blog.pageName/> </div> <b:else/>
<b:if cond=’data:blog.pageType == "index"’>
<div class=’breadcrumbs’>
<b:if cond=’data:blog.pageName == ""’>
Browse » <a expr:href=’data:blog.homepageUrl’>Home</a> » All posts <b:else/>
Browse » <a expr:href=’data:blog.homepageUrl’>Home</a> »
Posts filed under <data:blog.pageName/>
</b:if> </div> </b:if> </b:if> </b:if>
</b:if>
</b:includable>
<b:includable id=’main’ var=’top’>
<!– posts –>
<div class=’blog-posts hfeed’>
<!– disable default status message
<b:include data=’top’ name=’status-message’/>default status message disabled –>
<b:include data=’posts’ name=’breadcrumb’/>
<data:adStart/> Preview ၾကည့္ပါ..Preview လို႔ရတယ္ဆိုရင္ေတာ့ Save Template နိုပ္လိုက္ရင္ရပါၿပီ..။မထည့္ရေသးတဲ့ သူေတြအတြက္ပါ.. :)

About exodus42

0 comments:

Post a Comment