Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Tuesday, January 11, 2011

Hide Read More Link In Blogger Static Pages


Pin It

Read-More-Button 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?

  1. Go To Blogger > 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,

 

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


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

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 »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

26 comments:

Comment Page :
Jeet Dholakia on 8:56 PM, January 11, 2011 said... #

Hello Mohammad,
Brother 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.

samsexy98 on 11:30 PM, January 11, 2011 said... #

Thank You Mohammad for giving the credit :)

But 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

Nrupen on 12:34 AM, January 12, 2011 said... #

That was really nice.

Why People May Stop Visiting Your Blog

My World4Free on 7:55 AM, January 12, 2011 said... #

I m Using Jump Break from blogger

in that image only appears in the post in which we want

samsexy98 on 9:18 AM, January 12, 2011 said... #

@My World4Free
I am too using Jump Break but that do not work on Static pages for me.

Jeet Dholakia on 10:29 AM, January 12, 2011 said... #

@samsexy:
thank u for your advice, ya i have shifted to blogger comment

LinkFoci on 5:15 PM, January 12, 2011 said... #

simple but useful :)

Mohammad Mustafa Ahmedzai on 10:37 PM, January 12, 2011 said... #

@Dholakia

Anytime 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! :)

samsexy98 on 9:16 AM, January 13, 2011 said... #

@Mohammad
Hahahaha...
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..

samsexy98 on 6:02 PM, January 13, 2011 said... #

@Tariq
Please find a better place to advertise..

Ayush Agrawal on 7:07 PM, January 15, 2011 said... #

I am using Tanzanite.
The read more image shows up in every static page.I tried to put in this code but it displays the following error message:

"
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The string "--" is not permitted within comments. "

And when i remove the comments it saya that
"
Your template is invalid because the tag 'div' appears inside of the tag 'head'.
".

samsexy98 on 8:19 PM, January 15, 2011 said... #

@Ayush
Try removing the following two things from the code..




Don't understand why its saying that its not permitted...

samsexy98 on 8:25 PM, January 15, 2011 said... #

Oops sorry...
The thing that was to be removed didn't came in my comment..
Here it is...
[!--READ-MORE-STARTS--]
[!--READ-MORE-ENDS--]

Replace '[' with '<'

Mohammad Mustafa Ahmedzai on 10:10 PM, January 15, 2011 said... #

@Ayush

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

samsexy98 on 11:03 PM, January 15, 2011 said... #

What have you edited??? Confused here...<'.'>'

Mohammad Mustafa Ahmedzai on 4:22 PM, January 16, 2011 said... #

I had mistakenly wrote the ending comments as <!--READ-MORE-STOPS-> instead of <!--READ-MORE-STOPS-->

HTML can't be messed. :p

samsexy98 on 5:48 PM, January 16, 2011 said... #

ohh..
That was just a difference of a hyphen that's y didn't get what was wrong..

Ayush Agrawal on 8:58 AM, January 17, 2011 said... #

Thanks for the support.
Its all well now..

dream man on 7:06 AM, February 18, 2011 said... #

sir it didnot work in my blog i do all the steps but it didnot work as you see
please give me som advice for my blog
http://dreamboxfiles.blogspot.com

Paid Critique on 6:09 AM, May 05, 2011 said... #

do you know how to hide blog post from homepage? i want to set a static page in my blogs homepage and i will set a link to my blog but in the same URL.

thanks. hope you can help me.

black apron on 1:12 PM, May 05, 2011 said... #

i think this only works with those template that originated from blogger.

M Ahmed on 7:45 AM, May 10, 2011 said... #

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.

GulshanElectric on 4:07 PM, July 19, 2011 said... #

i am unable to remove the read more hack from my blog static pages. i have to use posts instead of pages due to this read more hack somewhere in the javascript codes of the template. i don't understand javascript so this is all like a mess to me.

check it here and suggest changes.

http://www.gulshanelectric.com

thanks and regards

Footygo on 3:16 AM, September 21, 2011 said... #

Similar issue like above.I use tweak to show only post titles on home pages,labels,arhive and similar.I delete read more from template ( i guess as is not appear again) but static pages also show only post title and i can get into them to see whats written.
Can you look at my blog and help mw with this ? Best regards
Max
http://footygo.blogspot.com/

Footygo on 3:21 AM, September 23, 2011 said... #

Ok ,my problem is that i remove read more from my blog,and put only post title to show,but issue is now it works with static page ( i meant show post title only but it doesnt show rest of static post page even if i click on title.can you help me with this.
You can find me here http://footygo.blogspot.com/
Best regards

Er Manoj on 5:12 PM, January 28, 2012 said... #

hi mybloggertricks i came to your site searching for a trick to remove read more button and show only one post blogger homepage.

but i unsuccessful and started editing my blog and a finally found the following script:

Nextsem

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |