Please don't click on these links yet.

Under construction: ? * # 0-9 |A |B |C |D |E |F |G |H |I |J |K |L |M |N |O |P |Q |R |S |T |U |V |W |X |Y |Z

Your opinion is needed with a new "FAQ" I'm thinking of writing up. Click on this "FAQ link" now and leave a comment if you can spare the time.
Tutorials : How I made it toolbars paginations buttons widgets tweeks mega tweeks everything else inspiration ideas FAQ problems Fixing problems

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 + &quot;_blog-pager-newer-link&quot;' 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 + &quot;_blog-pager-older-link&quot;' 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://lh6.googleusercontent.com/-Sbhb3ZsFngs/T5D6RTaIoDI/AAAAAAAAGQ8/zITFu67JcHE/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://lh5.googleusercontent.com/-SROzT2uegok/T5D6RXw7CaI/AAAAAAAAGQ8/kzBC0uQYQLw/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:

  1. 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!

    Buy Fifa 14 Ultimate Team Coins
    League of Legends boosting

    ReplyDelete
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.

Your text goes here. 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]

Scrollbox codes

<a target='_blank' title='DON'T TOUCH MY PHONE' href='ADDYOURURLHERE'><img src='https://lh4.googleusercontent.com/-qSyLJ0X94nk/T-_ekHbo_mI/AAAAAAAAHmY/qk0v-X5s32s/s320/58298-dont-touch-my-phone.png' border='0'/></a>

This free script provided by
JavaScript Kit

FAQ

YOUR OPINION COUNTS! A list of topics that I am thinking of writing about but need feedback from visitors before I go ahead with it.

Click to view more Pages
 

This site consists of tutorials that you would not normally see elsewhere. I am adding tutorials that I have either tweeked or created myself, using existing code already found on the Internet.

Back To Top Image by Cool Text: Logo and Button Generator - Create Your Own Logo

Scroll to Bottom Back to Top