Adding Background Image in Blogger "Read More" Link

adding image in readmore links
Recently, I made an updated version of adding "Read More" in blogger but that tutorial doesn't mention on how to replace the the "Read More" link with an image. In this tutorial we will add image on it in be half of the usual style of adding that widget in your blogger  without using any image. Please see first the live demo of what is that thing we are trying to achieve here.


Live Demo


Adding Background Image in Blogger "Read More"


Step 1. If you have not yet put the "Read More widget in blogger, please click it here for the tutorial.
Step 2. Now we will just make some changes on the code that you have you put in replacement of the code "<data:post.body>"  in step no. 7 in that previous tutorial.
The original code is:
<b:if cond='data:blog.pageType != "static_page"'>
<b:if cond='data:blog.pageType != "item"'>
<div expr:id='"summary" + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb("summary<data:post.id/>");</script>
</b:if>
</b:if>
<b:if cond='data:blog.pageType == "item"'><data:post.body/></b:if>

<b:if cond='data:blog.pageType == "static_page"'><data:post.body/></b:if>

<b:if cond='data:blog.pageType != "static_page"'>
<b:if cond='data:blog.pageType != "item"'>
<div style='float:right;margin-right:10px;margin-top:5px;'>
<a expr:href='data:post.url'>Read More</a>
</div>
</b:if>
</b:if>


Step 3. Replace the orange bold texts above with code below:
<a expr:href='data:post.url'> <div class='readmore' style='float: right;'>
</div></a>
</b:if>
</b:if>

Step 4. To add the CSS code, look for the tag ]]></b:skin>  and just above it paste the code below:
.readmore {
background: url("Select image url below") no-repeat scroll 0% 0% transparent;
width: 120px;
height: 36px;
top: 88px;
left: -7px;
position: relative;
}

Customization:


  • You can change the background url (in red bold texts) with your own image url.
  • Adjust the margin of the image by increasing and decreasing the numerical value in top attribute (in orange color). High value will put the image on a higher position and lower value will put the image in lower position respectively.
  • Adjust the horizontal position of the image by customizing the numerical value (in light blue color). Higher value will place the image more in the right position while lowering the value will put it more in  the left position.
  • You can use  some of my images url below:

Image URL -  http://2.bp.blogspot.com/-XmYLR-57UJw/Ud5hcgJSSLI/AAAAAAAABOE/IbcD6tDqjwc/s130/readmore+background.jpg


Image URL - http://4.bp.blogspot.com/-6li7NNlobQg/Ud5jZ92Hv8I/AAAAAAAABOU/TN-JCykepT4/s1600/read+more+background451.jpg


Image URL - http://1.bp.blogspot.com/-n_RdR6rUdz4/Ud6_XLrwhMI/AAAAAAAABPc/rJiumiagq6E/s1600/read+more+background1.jpg


Image URL - http://2.bp.blogspot.com/-le7HdthnBAg/Ud5jzUHQFFI/AAAAAAAABOc/JWdRyU_hpnM/s1600/read+more+background3.jpg


Image URl - http://2.bp.blogspot.com/-kby6AX0LMVU/Ud6-DI-HPZI/AAAAAAAABO4/k6_5O5R96Lk/s1600/read+more+background+1a.png


Image URL - http://3.bp.blogspot.com/-u-4Bz7uTTJ8/Ud6-uH0YqpI/AAAAAAAABPE/zVMQvBCdkDU/s1600/read+more+background10.jpg


Image URL - http://1.bp.blogspot.com/-sLNZkdJ1vuA/Ud6-0kuA7SI/AAAAAAAABPM/v4OKAbzQSM8/s1600/read+more+background9.jpg

  • You can change the size of the above images by changing the red bold number. Higher value will increase the image size and lower value will also decreases the size of the image.

Step 5. Save your Template and Enjoy!
About the Author:
tilt  hover effect
Hello folks! This is GOLDEN WORKS TV, the admin of this blog. No words could described my grateful appreciations to all newbie and professional bloggers around the world and most especially to Almighty God who gave me the wisdom...Read More
Follow him @ Twitter |Facebook

No comments :

Post A Comment!

Post A Comment!
We love to hear your feedbacks and suggestions. We will try our best to reply to your queries as soon as time allows. Please keep in mind that all comments are moderated manually by our editors team to minimize spamming, and all the links are nofollow.

Note:
1. To add HTML code in the box, please use our HTML editor generator.
2. Please do not spam. Those type of comments will be deleted upon our review.
3. We should appreciate an individual and suggestive discussion.

Best Regards,

GOLDEN WORKS TV

Related Posts Plugin for WordPress, Blogger...