Remove Next / Previous links and replace them with images
Friday, April 20, 2012 at 5:47 PM
Let's start with something simple by adding a next and previous button image and remove the "older" and "newer" links.
This tutorial is a little bit tricky but easy enough to do. Firstly, go to your "edit template" page and click on "expand template".
Now, there should be a main wrapper code but if there isn't look for the following lot of code or something similiar, which will be at the very top-most lot of code for the next/previous links in your template:
<div id='main-wrapper'>
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>
<b:includable id='nextprev'>
<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>
<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"' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
</span>
</b:if>
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
In the above code find the code in red and replace it with the following bit of code:
<img align='left' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIZVAZM6erwrHxxqwBJ88_rfmtiDpJfT80ZAIgLrJ9dOvly123SAot0GnQPhunEE-8qW7ZuklTLhEhpsIslBgrHpPWT_qupplGRYta83MsbuCTT6MIBJpxpxEdZbWgc7jJn0I0RRYsZ7ZV/s97/previous.jpg' style='margin:-3px 0 -5px 0;'/>
Then, find the code in blue and replace it with the following lot of code:
<img align='right' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3zeRPlfjNcyqZ1mHjOVjd3sws1vukQdpMdYM9sV8XGy1O-KyeBjpIxInwnso0j8HLW598QL400Lh85l60nQKnQs3P3cWIakjQtFAqiYhHTiXx-igryKRyywMSCZGBeIm_uI_7sfzu0i-6/s97/next.jpg' style='margin:-3px 0 -5px 0;'/>
Then locate the css code for the blog pager, newer link, and older link near the top of your template and change it to the code below:
#blog-pager {
background:#000000;
text-align: center;
padding:8px 0 10px 0;
}
#blog-pager-newer-link {
float: $startSide;
display:show;
margin-top:0;
margin-left:10px;
}
#blog-pager-older-link {
float: $endSide;
display:show;
margin-top:0;
margin-right:10px;
}
Preview your template and if it looks great, then save your template. Sometimes the home link in the blog pager will be out of alignment, but with this tutorial the blog pager's padding is out of alignment a little bit when you click on the older link on your blog. It's only off by one or two pxs though.
This tutorial is a little bit tricky but easy enough to do. Firstly, go to your "edit template" page and click on "expand template".
Now, there should be a main wrapper code but if there isn't look for the following lot of code or something similiar, which will be at the very top-most lot of code for the next/previous links in your template:
<div id='main-wrapper'>
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>
<b:includable id='nextprev'>
<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>
<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"' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
</span>
</b:if>
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
In the above code find the code in red and replace it with the following bit of code:
<img align='left' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIZVAZM6erwrHxxqwBJ88_rfmtiDpJfT80ZAIgLrJ9dOvly123SAot0GnQPhunEE-8qW7ZuklTLhEhpsIslBgrHpPWT_qupplGRYta83MsbuCTT6MIBJpxpxEdZbWgc7jJn0I0RRYsZ7ZV/s97/previous.jpg' style='margin:-3px 0 -5px 0;'/>
Then, find the code in blue and replace it with the following lot of code:
<img align='right' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3zeRPlfjNcyqZ1mHjOVjd3sws1vukQdpMdYM9sV8XGy1O-KyeBjpIxInwnso0j8HLW598QL400Lh85l60nQKnQs3P3cWIakjQtFAqiYhHTiXx-igryKRyywMSCZGBeIm_uI_7sfzu0i-6/s97/next.jpg' style='margin:-3px 0 -5px 0;'/>
Then locate the css code for the blog pager, newer link, and older link near the top of your template and change it to the code below:
#blog-pager {
background:#000000;
text-align: center;
padding:8px 0 10px 0;
}
#blog-pager-newer-link {
float: $startSide;
display:show;
margin-top:0;
margin-left:10px;
}
#blog-pager-older-link {
float: $endSide;
display:show;
margin-top:0;
margin-right:10px;
}
Preview your template and if it looks great, then save your template. Sometimes the home link in the blog pager will be out of alignment, but with this tutorial the blog pager's padding is out of alignment a little bit when you click on the older link on your blog. It's only off by one or two pxs though.
2 comments:
Your Answer
Thanks for contributing an answer to Blogger Tutorials for everyone!
Please make sure your answer is NOT a SPAM comment, as such comments will be deleted.
Provide details and share your research. Avoid statements based solely on opinion; only make statements you can back up with an appropriate reference, or personal experiences.
Comment Options to add to the form below:
Of course, you can add various combinations of the above to your comment as long as you place the ending tags in the right locations.
Features:
To change your text to bold simply type in a left facing arrow then a UPPERCASE letter b then a right facing arrow. Then add your text, followed by typing in a left facing arrow, then type in /B and then a right facing arrow.
To change your text to italics simply type in a left facing arrow then a lowercase letter i then a right facing arrow. Then add your text, followed by typing in a left facing arrow, then type in /i and then a right facing arrow.
To change the colour of your text type in [co="red"]Add your text here[/co] You can change the colour of the text by either typing in the colour's word or by adding a hex colour code that includes the hash symbol.
To add a marquee text type in [ma]Add your text here[/ma]
To add an image or gif type in [im]Add your image or gif URL here[/im]
Of course, you can add various combinations of the above to your comment as long as you place the ending tags in the right locations.
To add a Youtube video as a comment use either one of the two codes below and replace the video url with the one you want to add as a comment.
[video=ADD-ENTIRE-VIDEO-URL-THAT-YOU-VIEW-ON-THE-WATCH-PAGE-ON-YOUTUBE-HERE]
[video=ADD-ENTIRE-VIDEO-URL-THAT-YOU-VIEW-ON-THE-watch?feature=player_detailpage-HERE]
Of course, you can add various combinations of the above to your comment as long as you place the ending tags in the right locations.
Features:
To change your text to bold simply type in a left facing arrow then a UPPERCASE letter b then a right facing arrow. Then add your text, followed by typing in a left facing arrow, then type in /B and then a right facing arrow.
To change your text to italics simply type in a left facing arrow then a lowercase letter i then a right facing arrow. Then add your text, followed by typing in a left facing arrow, then type in /i and then a right facing arrow.
To change the colour of your text type in [co="red"]Add your text here[/co] You can change the colour of the text by either typing in the colour's word or by adding a hex colour code that includes the hash symbol.
To add a marquee text type in [ma]Add your text here[/ma]
To add an image or gif type in [im]Add your image or gif URL here[/im]
Of course, you can add various combinations of the above to your comment as long as you place the ending tags in the right locations.
To add a Youtube video as a comment use either one of the two codes below and replace the video url with the one you want to add as a comment.
[video=ADD-ENTIRE-VIDEO-URL-THAT-YOU-VIEW-ON-THE-WATCH-PAGE-ON-YOUTUBE-HERE]
[video=ADD-ENTIRE-VIDEO-URL-THAT-YOU-VIEW-ON-THE-watch?feature=player_detailpage-HERE]
Subscribe to:
Post Comments (Atom)
Scrollbox codes
<a target='_blank' title='DON'T TOUCH MY PHONE' href='ADDYOURURLHERE'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL7STOhgP_MlwszrcyPkDHVQ2MbrK0IqnhEWeqUdmPh5QFbqdXvlGmh-RN3ZVfPR48rBipZUVKAGy1mlpuL1Q1EoHubFlNPI25TJ54PvPhZSqHuM42AYIuIhtbSg-F40KHKgW08aL29bar/s320/58298-dont-touch-my-phone.png' border='0'/></a>
This free script provided by
JavaScript Kit
This kind of great story.. Sophie most of us really like work, that always assist help remind most of us to find out every day factors together with numerous take a look at!
ReplyDeleteBuy Fifa 14 Ultimate Team Coins
League of Legends boosting
OMG Thank you!!!
ReplyDelete