The Read More link tutorial 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 Sam of Plenty Of E-books 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 –> Add Read More Link To Your Posts
How To Summarize Posts and Hide Read More Link in Static Pages?
- Go To Blogger > Design > Edit HTML
- Backup your template
- 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 == "static_page"'><br/>
<b:else/>
<b:if cond='data:blog.pageType == "index"'><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,
Save your template and view your static Page to see it working just perfect! Peace :)
If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »
Hello Mohammad,
ReplyDeleteBrother you are too fast too furious,thanks a lot.
hey can you tell me how to implement comment section in static page in blogger i am using disqus, please help me brother.
Thank You Mohammad for giving the credit :)
ReplyDeleteBut I think you missed the Date Hack which you told can happen with this code only...
@Jeet
I would suggest to use the default blogger comment form because of some following reasons:
1. Disqus comments loads slow as so your blog too get slow.
2. Its not SEO friendly I think. I don't know much about SEO but I read it somewhere.
3. I even tried to install it but wasn't successful and didn't wanted much of a headache :p
Thank You
Samsexy98
@My World4Free
ReplyDeleteI am too using Jump Break but that do not work on Static pages for me.
@samsexy:
ReplyDeletethank u for your advice, ya i have shifted to blogger comment
simple but useful :)
ReplyDelete@Dholakia
ReplyDeleteAnytime pal and for comment system stick to Blogger. Simply the best from every angle. What looks good doesn't always taste good. Hope you get me :D
@Sam
For you I believe I would have to write some SEO related posts and I was wondering I should.
@Myworld
Jump break could be an alternative I agree dude.
@LinkFoci
A Pleasure! :)
@Mohammad
ReplyDeleteHahahaha...
I am really a Dumb-ass when it comes to SEO and that reflects in my site...:p
Its because I don't understand how to implement it..
@Tariq
ReplyDeletePlease find a better place to advertise..
@Ayush
ReplyDeleteTry removing the following two things from the code..
Don't understand why its saying that its not permitted...
Oops sorry...
ReplyDeleteThe thing that was to be removed didn't came in my comment..
Here it is...
[!--READ-MORE-STARTS--]
[!--READ-MORE-ENDS--]
Replace '[' with '<'
@Ayush
ReplyDeleteSorry for the inconvenience. I have edited the code above. you can now use it.
@Sam
Yes the problem was with the HTML comments which was incorrect and now the code will work just fine.
What have you edited??? Confused here...<'.'>'
ReplyDeleteI had mistakenly wrote the ending comments as <!--READ-MORE-STOPS-> instead of <!--READ-MORE-STOPS-->
ReplyDeleteHTML can't be messed. :p
ohh..
ReplyDeleteThat was just a difference of a hyphen that's y didn't get what was wrong..
I have successful blog but now I want to switch to WordPress as it has a lot more great options which are available in blogger. Is my switch from blogger to WordPress is going to be the biggest mistake in regards it will decrease my traffic and other stuff.
ReplyDeleteasalam o alaikum.. mery blog k pages mai comment box show nh hora plz help me
ReplyDeleteIt worked without any problem. Thanks a lot :-)
ReplyDelete