PS: Tested with Chrome, Firefox, IE9 & Safari.
STEP1: Adding the sticky bar
First comes first. I have already shared a detailed tutorial on adding a stickybar to blogger. Please first install a stickybar on your blogs and then try step#2 of today's tutorial.Note: The style that I am using on MBT is different from that of the tutorial so if you want a similar color theme then simply copy the stylesheet from MBT source file or let me know to help you.
STEP2:
Now comes the interesting part. What we will do here is simply shifting your current Newer, Older & Home buttons to the top left of the stickybar and replace them with more fancy buttons like the one we are using. Follow these steps:- Go To Blogger > Template
- Backup your template
- Click Edit HTML and then check "Expand Widget Templates"
- Search for the following CSS classes and delete them all: You will find three such classes or more starting with either #blog-pager or .blog-pager
#blog-pager {5. Now after you have deleted them, add the following code in their place:
------
}
#blog-pager-newer-link {
----
---
--
}
#blog-pager-older-link {
-----
---
--
}
#blog-pager {
text-align:center;
}
#blog-pager-newer-link {
position:fixed;
z-index:9999;
margin-left:-320px;
top:0px;
margin-top:5px;
}
#blog-pager-older-link {
position:fixed;
z-index:9999;
margin-left:-290px;
top:0px;
margin-top:5px;
}
#blog-pager-more-link {
position:fixed;
z-index:9999;
margin-left:-20px;
top:0px;
margin-top:5px;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
#blog-pager-newer-link {
position:fixed;
z-index:9999;
margin-left:-627px;
top:0px;
}
#blog-pager-older-link {
position:fixed;
z-index:9999;
margin-left:-597px;
top:0px;
}
}
What we did in step4 and step5 was simply replacing your old code with the new one.
6. Next search for the following chunk of code:
Note: You are only concerned with finding the two highlighted codes. The code inside them may look different for your template so just finding these two highlighted tags and then follow step7.
<b:includable id='nextprev'>7. Replace the code inside them with the following code as shown below:
<div class='blog-pager' id='blog-pager'>
<b:if cond='data:newerPageUrl'>
<span id='blog-pager-newer-link'>
<a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + "_blog-pager-newer-link"' title='Previous'>« Prev</a>
</span>
</b:if>
<b:if cond='data:olderPageUrl'>
<span id='blog-pager-older-link'>
<a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"' title='Next'>Next »</a>
</span>
</b:if>
<span id='home-link'>
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
</span>
<b:if cond='data:mobileLinkUrl'>
<div class='blog-mobile-link'>
<a expr:href='data:mobileLinkUrl'><data:mobileLinkMsg/></a>
</div>
</b:if>
</div>
<div class='clear'/>
</b:includable>
<b:includable id='nextprev'>It was that easy!
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:if cond='data:olderPageUrl'>
<span id='blog-pager-more-link'>
<a class='blog-pager-more-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_4BWyPm_IJxYM51n4P19CaoF3Sme-ioO-46z2yvLyjtng_VCl_usF5NhjU8m7gAF2OP5gS7xm5xiAy_ONnUyFmPm2jHbmJMlCom-tjnDIkhUah0a8TFBcVQlRcWexwaMl0m5_vwpcYM3c/s400/more.png'/></a>
</span>
</b:if>
</b:if>
<b:if cond='data:blog.url != data:blog.homepageUrl'>
<div class='blog-pager' id='blog-pager'>
<b:if cond='data:newerPageUrl'>
<span id='blog-pager-newer-link'>
<a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + "_blog-pager-newer-link"'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSIUEnpjo7H9jArHHa4U0RIxSSvcRm22thKDpOaqI1YqtEG2SF4CgQVIBjlSUSeFqXVVoYY4veJfaxVtBAAOrchAIRqwhVAiI3ba_Bvu6V2PQ6odsLKNW6oiVRjPvHMaAmicv6PsWhPX2C/s400/Previous.png'/></a>
</span>
</b:if>
<b:if cond='data:olderPageUrl'>
<span id='blog-pager-older-link'>
<a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdOkcfeDiKT5itAS2Gw4Op44R6_iLDcua-zvyo4mneFAb4zNC5O3katAkgAfWQr3j9tX0F8Ny3msmmyYR2D7xzbi_pW4z5U1sCOw02kiDosvoPcsirnf461tumFcYfN674be1J6_uXugU8/s400/Next.png'/></a>
</span>
<b:else/>
</b:if>
</div>
<div class='clear'/> </b:if>
</b:includable>
8. All done! Visit your Blog to see it functioning just fine.
0 comments:
BONYEZA HAPA KUACHA MAONI YAKO