Saturday, May 12, 2012

How to Change Older Post and Newer Post with Icon?

Another blogging tricks I wish to share is on how to change Older Post and Newer Post with icon, the first step is preparing the icon which you want to use. For example the icons look like this:



Please upload the icons you have to a server that you usually use to place an image, and note the URL address. For example the icons’ URL address as follow:

http://2.bp.blogspot.com/-KNsJQr3OL9I/T3hguh5Pz8I/AAAAAAAAAXI/w_MXAJCaza0/s1600/Left_arrow.png


http://3.bp.blogspot.com/-m3fQRZCtoVo/T3hgvHO83AI/AAAAAAAAAXM/kMmMLAAUt1A/s1600/home_icon.png


http://2.bp.blogspot.com/-LzxyD3ph_2g/T3hgv85ahfI/AAAAAAAAAXU/1ogTUyLxG0k/s1600/right_arrow.png


Change the above code into like this:







<img alt='Next' border='0' src=' http://2.bp.blogspot.com/-KNsJQr3OL9I/T3hguh5Pz8I/AAAAAAAAAXI/w_MXAJCaza0/s1600/Left_arrow.png' title='Next'/><img alt='previous' border='0' src=' http://3.bp.blogspot.com/-m3fQRZCtoVo/T3hgvHO83AI/AAAAAAAAAXM/kMmMLAAUt1A/s1600/home_icon.png ' title='previous'/><img alt='home' border='0'  http://3.bp.blogspot.com/-m3fQRZCtoVo/T3hgvHO83AI/AAAAAAAAAXM/kMmMLAAUt1A/s1600/home_icon.png ' title='home'/>



If you have had the code as above, the next step is to place it on your template code, here are the ways:
  1. Log in to blogger with your ID 
  2. Click Layout 
  3. Click Edit HTML tab 
  4. Click “Download Full Template”, please back up your template first (important) 
  5. Please check the small box beside Expand Widget Templates



Wait for while until the process finished. Find this code on your template:




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

Look at the code in shaded in green
Change the code <data:newerPageTitle/><data:olderPageTitle/>, and <data:homeMsg/> with your icon code. E.g.

<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'><img alt='Next' border='0' src=' http://2.bp.blogspot.com/-KNsJQr3OL9I/T3hguh5Pz8I/AAAAAAAAAXI/w_MXAJCaza0/s1600/Left_arrow.png ' title='Next'/></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'><img alt='previous' border='0' src='http://2.bp.blogspot.com/-LzxyD3ph_2g/T3hgv85ahfI/AAAAAAAAAXU/1ogTUyLxG0k/s1600/right_arrow.png ' title='previous'/></a>      </span>
</b:if>

<b:if cond='data:blog.homepageUrl != data:blog.url'>
<a class='home-link' expr:href='data:blog.homepageUrl'><img alt='home' border='0' src='http://3.bp.blogspot.com/-m3fQRZCtoVo/T3hgvHO83AI/AAAAAAAAAXM/kMmMLAAUt1A/s1600/home_icon.png ' title='home'/></a>
<b:else/>
<b:if cond='data:newerPageUrl'>
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
</b:if>
</b:if

Click Save Template button 

The final result will be like this:

0 comments:

Post a Comment

 

Tags

Site Info

Followers

blogscenters Copyright © 2009 Blogger Template Designed by Bie Blogger Template