Replace Older, Newer And Home Blogger Links With An Image Or Text

  • Posted by M. Suleman Saeed Khan
  • at 10:37 AM -
  • 0 comments

Newer Post, Home and Older Post are links that appear on the bottom of the posts. When a visitor click on one of these links, they will take him to the page with the list of your previous posts.

The number of the posts on these pages will be the same as the number of the posts on your main page.


What we can do:

A. Change the text of Newer, Older, Home links
B. Place a picture beside them (a small icon, arrow, or whatever...)
C. Add an image instead of the links

So let's start customizing them...

1. Log in to your Blogger Dashboard, go to Design > Edit HTML > make a backup of your template
2. Check the "Expand Widget Templates" box
3. Find (CTRL + F) the following code:

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

Find in this code the following fragments which corresponds to each page links
  1. <data:newerPageTitle/> represents Newer Posts link
  2. <data:olderPageTitle/> represents Older Posts link
  3. <data:homeMsg/> represents Home link
Now change these fragments of codes as it follows:

A. Change the text of the links

You need to REPLACE following parts in original code with ANY TEXT you like:
  • replace <data:newerPageTitle/> with, for example NEXT POST 
  • replace <data:olderPageTitle/> with, for example PREVIOUS POST
  • replace <data:homeMsg/> (only the first one) with, for example HOMEPAGE

    B. Place a picture beside Newer Posts, Older Posts and Home links 

    Add the below code just at the beginning of each of the colored fragments of codes from step 3.

    <img src="URL Address"/>

    So it should look like this

    <img src="URL Address"/><data:newerPageTitle/>

    Note: Replace URL Address text with the url address of the image you want to appear

    C. Replace Older Posts, Newer Posts and Home links with an image/picture

    You can place any kind of picture you want All you have to do is use this code for the pic:

    <img src="URL ADDRESS"/>


    ...just replace URL ADDRESS, with the URL of your hosted picture
    ...and in code, REPLACE the original link code for text with picture code
    • replace <data:newerPageTitle/> with the pic for newer (next) posts
    • replace <data:olderPageTitle/> with the pic for older (previous) posts
    • replace <data:homeMsg/> (only the first one) with the pic for homepage

    4. That's it! Preview and Save the Template.

    Author

    Written by Admin

    Hi! I am M. Suleman Saeed Khan. I am trying to give you useful information. Thanks

    0 comments: