Home » » Hide Read More Link In Blogger Static Pages

Hide Read More Link In Blogger Static Pages

Read-More-Button The [a href="http://www.mybloggertricks.com/2009/05/add-read-more-link-to-your-posts-expand.html" target="_blank" rel="Add read more link to Blogger"]Read More link tutorial[/a] that I previously shared summarizes all posts to a specified length but then it even appears on Blogger’s newly introduced Static Pages where it should not be. I was scratching my head on how to solve this problem when [a href="http://www.blogger.com/profile/13597329800723396260" target="_blank"]Sam[/a] of [a href="http://www.plentyofebooks.net/" target="_blank"]Plenty Of E-books[/a] came to my rescue. He provided me with a code that shortens posts and also doesn’t let the read more link or button to appear on static pages. So lets replace our old code with this more updated one.

Note:- If you have never implemented this trick before then kindly read this tutorial first –> [a href="http://www.mybloggertricks.com/2009/05/add-read-more-link-to-your-posts-expand.html" target="_blank" rel="Add Read More Link To Your Posts"]Add Read More Link To Your Posts[/a]

 

 

How To Summarize Posts and Hide Read More Link in Static Pages?

  1. Go To [a href="http://blogger.com" target="_blank"]Blogger[/a] > Design > Edit HTML
  2. Backup your template
  3. Search for the old read more code which looks like this,

<b:if cond='data:blog.pageType != "item"'>
<a expr:href='data:post.url'>

<div style="text-align: right;">Read More ->></div></a>
</b:if>

 

or something similar to this. Simply replace it with this one,

<!--READ-MORE-STARTS-->
<b:if cond='data:blog.pageType == &quot;static_page&quot;'><br/>
<b:else/>
<b:if cond='data:blog.pageType == &quot;index&quot;'><br/>
<a expr:href='data:post.url'><div style='text-align: right;'>
<img height='33px' src='IMAGE URL OF READ MORE BUTTON' width='120px'/></div>
</a>
</b:if>
</b:if>
<!--READ-MORE-STOPS-->

 

kindly replace IMAGE URL OF READ MORE BUTTON with Image link of your read more button. If you don’t have a button then grab one from some of the buttons I designed in past,

Visit these links,

  • [a href="http://www.mybloggertricks.com/2009/09/blinking-read-more-buttons-for.html" target="_blank" rel="Blinking Read More Buttons"]Blinking Read More Buttons[/a]
  • [a href="http://www.mybloggertricks.com/2009/09/attractive-animated-read-more-buttons.html" target="_blank" rel="Animated Read More Buttons"]Animated Read More Buttons[/a]
  • [a href="http://www.mybloggertricks.com/2009/09/attractive-read-more-button-images-for.html" target="_blank" rel="Arrow Head Read More Buttons"]Arrow Head Read More Buttons[/a]

 

Save your template and view your static Page to see it working just perfect! Peace :)

Source: http://www.mybloggertricks.com/2011/01/hide-read-more-link-in-blogger-static.html

0 comments :

Post a Comment

 
Play : Agame | Y8 Games | Y3 Games
Copyright © 2011. Blogger Tips And Tricks 2012 - All Rights Reserved

Proudly powered by Blogger