Blogger Blogs have default post navigation script which allows user to navigate between posts.It consists of ” older posts” , “Newer posts” and ” Home page” link. Since it’s default , no CSS codings are added for the navigation script. So in this post I will explain how to modify the script and to add background images and then aligning the older posts and newer posts links properly. Before explaining how to customize the codes , I would like to explain the tags involved in the blogger templates which control the blogger post navigation script. Firstly, let us see the default code included in minima or Rounders blogger template. #blog-pager-older-link { #blog-pager { instead of startside and endside we can have left and right respectively. If you are using custom blogger template , then you will find something like this : Now let us see the default tags included in the blogger templates which shows post navigation links.To see this tag , you need to check ” expand widget templates” option in EDIT HTML page of the blogger template. There you can find the following tag <b:if cond=’data:olderPageUrl’> <b:if cond=’data:blog.homepageUrl != data:blog.url’> </div> As mentioned in the CSS codes itself, Hope now you know about the code which controls the Older post and Newer post links for post navigation. Now let us see how to customize this script to suit our blogger template. Let us see how to add Background image to the text Older Posts and Newer Posts. #blog-pager-older-link { #blog-pager { Now replace the whole code with In that you can change the background images and then customize the color of the text. That’s it now save your template , you can find something like this : To replace the “older posts” , ” Newer Posts” and “Home” text with background images , follow these simple steps. replace the css code for blog post navigation widget with this code .blog-pager a:hover{ and then save your template. Now check ” Expand Widget Templates” option and now replace the <b:if cond=’data:olderPageUrl’> <b:if cond=’data:blog.homepageUrl != data:blog.url’> </div> with this code <b:if cond=’data:olderPageUrl’> <b:if cond=’data:blog.homepageUrl != data:blog.url’> </div> You can change the images included with your own blog navigation images. After that save your template and check your blog. You can find a blog navigation links something like this : You can also show the blog post navigation script above post title too. In order to implement this hack , go to EDIT HTML page of your blog and check ” EXPAND WIDGET TEMPLATES” option. Now search this tag in your template. Now paste the following code immediately below it Few might have noticed that the Blog post navigation links will be misaligned sometimes. Newer post , Older post and Home page links will get together. So it means that the CSS codes are missing for the file. To overcome this problem , just copy and paste the corresponding CSS code you need above ]]></b:skin> . Sometimes the blog post navigation may be missing in your blog. It’s because the blog post navigation code may be missing in your template. To overcome this problem , search this tag in your template with ” expand widget templates” option enabled. <b:include name=’nextprev’/> if the tag is missing , then add the above tag in your template below <b:includable id=’main’ var=’top’> as shown in the image. Hope this post will be helpful for all blogger newbies. If you need any other customization then feel free to ask in comment form below. Popularity: 7%Know the script codes
CSS codes
float: $startSide;
margin-$startSide: 13px;
}
float: $endSide;
margin-$endSide: 13px;
}
text-align: center;
}
#blog-pager-newer-link : this code contains the css necessary for newer posts link
#blog-pager-older-link : this code contains the css necessary for older posts link
and #blog-pager controls the contains necessary for Home page links.
#blog-pager-newer-link {
padding-left : 20px;
border : none;
float : left;
}
#blog-pager-older-link {
float : right;
padding-right : 20px;
border : none;
}
#blog-pager {
padding : 0 15px 0;
text-align : center;
}
.blog-pager a {
color : #cc0000;
}
.blog-pager a:hover {
color : #cc0000;
}XML tags which shows the post navigation links
<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"’ expr:title=’data:newerPageTitle’><data:newerPageTitle/></a>
</span>
</b:if>
<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"’ expr:title=’data:olderPageTitle’><data:olderPageTitle/></a>
</span>
</b:if>
<a class=’home-link’ expr:href=’data:blog.homepageUrl’><data:homeMsg/></a>
<b:else/>
<b:if cond=’data:newerPageUrl’>
<a class=’home-link’ expr:href=’data:blog.homepageUrl’><data:homeMsg/></a>
</b:if>
</b:if>
<div class=’clear’/>
</b:includable>Adding background image along with text
Go to EDIT HTML SUBTAB and then search this following code or similar.
float: $startSide;
margin-$startSide: 13px;
}
float: $endSide;
margin-$endSide: 13px;
}
text-align: center;
}
#blog-pager-newer-link {
background : url(http://i43.tinypic.com/11bro1s.jpg) no-repeat left 0%;
padding-left : 20px;
border : none;
float : left;
}
#blog-pager-older-link {
float : right;
background : url(http://i44.tinypic.com/2n6dirp.jpg) no-repeat right 0%;
padding-right : 20px;
border : none;
}
#blog-pager {
padding : 0 15px 0;
text-align : center;
}
.blog-pager a {
color : #cc0000;
}
.blog-pager a:hover {
color : #cc0000;
}Replace Image with Background images
#blog-pager-newer-link {
padding-left : 20px;
border : none;
float : left;
}
#blog-pager-older-link {
float : right;
padding-right : 20px;
border : none;
}
#blog-pager{
padding:50px 10px 10px 10px;
text-align:center;
}
.blog-pager a{
color:#A10000
}
color:#15FFED
}
<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"’ expr:title=’data:newerPageTitle’><data:newerPageTitle/></a>
</span>
</b:if>
<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"’ expr:title=’data:olderPageTitle’><data:olderPageTitle/></a>
</span>
</b:if>
<a class=’home-link’ expr:href=’data:blog.homepageUrl’><data:homeMsg/></a>
<b:else/>
<b:if cond=’data:newerPageUrl’>
<a class=’home-link’ expr:href=’data:blog.homepageUrl’><data:homeMsg/></a>
</b:if>
</b:if>
<div class=’clear’/>
</b:includable>
<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"’ expr:title=’data:newerPageTitle’><img alt=’techieblogger.com’ src=’http://i69.photobucket.com/albums/i42/queenofdreamsz/NextIcon.gif’ title=’Newer Post’/></a>
</span>
</b:if>
<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"’ expr:title=’data:olderPageTitle’><img alt=’Techie Blogger’ src=’http://i69.photobucket.com/albums/i42/queenofdreamsz/BackIcon.gif’ title=’Older Post’/></a>
</span>
</b:if>
<a class=’home-link’ expr:href=’data:blog.homepageUrl’><img alt=’Techie Blogger’ src=’http://i85.photobucket.com/albums/k47/bongmalove/icon/home.gif’ title=’Home Page’/></a>
<b:else/>
<b:if cond=’data:newerPageUrl’>
<a class=’home-link’ expr:href=’data:blog.homepageUrl’><img alt=’Techie Blogger’ src=’http://i85.photobucket.com/albums/k47/bongmalove/icon/home.gif’ title=’Home Page’/></a>
</b:if>
</b:if>
<div class=’clear’/>
</b:includable>Show blog post navigation above posts title
<b:include name=’nextprev’/>Troubleshooting problems with blog post navigation script
Blog post navigation missing
Browse » Home »
H - Foot ,
H - How to ,
H - Post ,
Java Script
» Customizing Blogger post Navigation script
Customizing Blogger post Navigation script
#blog-pager-newer-link {
<b:includable id=’nextprev’>
#blog-pager-newer-link {
<b:includable id=’nextprev’>
<b:includable id=’nextprev’>
Subscribe to:
Post Comments (Atom)
អាយូយយ!! ច្រើនណាស់ តាពិនហ្នឹងអស់ម៉ោងដេកហើយខ្ញុំ តែខ្ញុំត្រូវតែធ្វើអោយបានចំរេច ក្មះគេណាស់ខ្ញុំអត់ចេះអី ((អាយីង)) អអអគូណណ!!
««កាលពីព្រេងនាយមានរឿងមួយ រឿងនោះគឺ!»»
មានមនុស្សពីរនៅផ្ទះជាប់គ្មា (ពូកគេស្គាល់គ្មាយូហើយ) នាថ្ងែមួយពីរនាក់នោះក៏បានជួបគ្មា ដោយចែដន្នហើយមាននម្នាក់ស្រែកសួរថា
មនុស្ស A»
មេកហើយ!! ដល់ណាហ្នើយយើង?
មនុស្ស B »
គ្មានអី ស្រួលទេវើយ គេអោយតែងថ្ទាំងតែងថ្ទាំងហើយ នូវអត់ចេះទៀត សង្ស័យតាគេឈប់ប្រាប់ផង
មនុស្ស A »
អើ!! សារីយើង ទាល់ ១+១=២ ហស៎! បានចេះ តស់ទៅផ្េទះវិញ សុី បាយកក
រួចពីរនាក់នោះក៏ដើរទៅផ្ទះដោយទឺកមុខដូចច្កូតបាត់ទៅ។ ចាប់ពីពេលនោះមកគេទាំថ្វេ ក៍បានប្រកបមុខរប រើសអេតចាយជា Primary Job ទៅ !!!
អរគុណ :) សំរាប់រឿងកំប្លែង។ តែចង់សួរមួយដាក់រឿងហ្នឹងចង់សំដៅលើអ្វីហ្នឹង? ខ្ញុំដូចជាមិនយល់សេចក្ដីសោះ មើលបងប្រុសជួយបកសេចក្ដី កុំប្រើរឿងកង្កប់ន័យ ខ្ញុំអានមិនយល់ទេ
តាមពិតទៅរឿងនេះគ្មានអីទេ គឺខ្ញុំនិនាយពីខ្លួនខ្លុំនិងមិត្តខ្ញុំម្នាក់ ដែលព្យាយាមបង្កើត Web blog អត់បានល្អ ហើយក៍ទៅរកជំនួយផ្សេងៗ រកបានហើយធ្វើមិនកើតទៀត។ សរុបមក គឺខ្លុំបន្ទោសខ្លួនឯង តែចង់អោយមានរឿងកំប្លែងៗទៅ។ OK take a time to Visit my blog ~~www.khmerzip.blogspot.com~~ ផង I'll upgrade to become like Pro
zZZZ :-/ There are to many code (needed and unneeded in 1 place).
Would you please separate the code for copies? i mean I'll see only code for copy and past it into my HTML files.
CUZ I think that's it make me clear and easy to collect all needed code . Thanks for your shared. :) I'm noob