February 06, 2008

(87) Comments

Show or Hide Your Full Post in Blogger

Kendhin

This is the way to show or hide your full post on the main page of your blog. This is different from my old "Read More " methods. If in old "Read More" Methods it will show "Read More" link, then if you click the link you will load and go to another page that will show your full post/articel. But with my next methode below, if you click the link you will see your full post/articel in the same page and it no needs time to load, it only expand your full post. Do you want to try it? here is the trick:

1. Login to Blogger, Chose "Layout --> Template --> Edit HTML
2. Click "Download Full Templates" link to back up your template.
3. Check on the "Expand Template Wdiget" Check Box.
4. Copy the code below and paste above this code </head>

<script src='http://kendhin.890m.com/Readmore.js' type='text/javascript'/>


5. Then find this code <div class='post-header-line-1'/> .
6. If You found it you will see a code like this:

<div class='post-body entry-content'>

or

<div class='post body'>


7. The next step is change or replace the code (Only Number 6 code) to be like this:

<div class='post-body entry-content' expr:id='"post-" + data:post.id'>
<b:if cond='data:blog.pageType == "item"'>


8. Under it you will see a code like this <p><data:post.body/></p>
9. Put the code below under it.

<b:else/>
<style>#fullpost {display:none;}</style>
<p><data:post.body/></p>
<span id='showlink'>
<p><a expr:onclick='"javascript:showFull(\"post-" + data:post.id + "\");"' href='javascript:void(0);'>[+/-] Show Full Post...</a></p>
</span>
<span id='hidelink' style='display:none'>
<p><a expr:onclick='"javascript:hideFull(\"post-" + data:post.id + "\");"' href='javascript:void(0);'>[+/-]Hide Full Post...</a></p>
</span>
<script type='text/javascript'>checkFull("post-" + "<data:post.id/>")</script>
</b:if>


10. So, the full code will like this :

<div class='post-header-line-1'/>
<div class='post-body entry-content' expr:id='"post-" + data:post.id'>
<b:if cond='data:blog.pageType == "item"'>
<p><data:post.body/></p>

<b:else/>
<style>#fullpost {display:none;}</style>
<p><data:post.body/></p>
<span id='showlink'>
<p><a expr:onclick='"javascript:showFull(\"post-" + data:post.id + "\");"' href='javascript:void(0);'>[+/-] Show Full Post...</a></p>
</span>
<span id='hidelink' style='display:none'>
<p><a expr:onclick='"javascript:hideFull(\"post-" + data:post.id + "\");"' href='javascript:void(0);'>[+/-] Hide Full Post...</a></p>
</span>
<script type='text/javascript'>checkFull("post-" + "<data:post.id/>")</script>
</b:if>


11. Save Your Editing.
12. Go to menu "Setting --> Formatting"
13. On the bottom page you will see a box beside text "Post Template". Copy the code below and paste in to the box

<span id="fullpost">


</span>


14. Save your setting.
15 If you want to post an articel place your part articel above this code <span id="fullpost">. Then the remain or full post put between this code <span id="fullpost"> and this </span>

GOOD LUCK>>>>>




Related Articles :



87 Responses to "Show or Hide Your Full Post in Blogger"
Anonymous said :
July 4, 2008 4:00 PM
thanks for this post..
Mariano said :
July 6, 2008 8:56 PM
I followed the steps but got the following error message at step #11 when I tried to "Save Template":

We were unable to save your template
Please correct the error below, and submit your template again.
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Element type "div" must be followed by either attribute specifications, ">" or "/>".

aDios,
Mariano
Mariano said :
July 6, 2008 9:10 PM
I tried it again and it saved it and the code appears when I select to make a new post but it does not work. It posts the whole text without a link to give you (the reader) the option to show or hide.

aDios,
Mariano
admin said :
July 7, 2008 3:31 AM
@Marianoo, May I see your blog that use this trick?
Mariano said :
July 8, 2008 9:59 AM
Well, since it did not work I just reloaded my original template.
I had tried it on the blog here and it did not work. You can see a nice functioning one here (but the person who set it up is no longer with the blog and no one knows how they did it).
Thanks for looking into it and aDios,
Mariano
Kaito said :
July 10, 2008 10:16 PM
hello admin.
the codes also does not functioned with my blogs.
i wish you can help
Kaito said :
July 10, 2008 10:27 PM
my blog
http://silent1412.blogspot.com
Rap DVD said :
July 17, 2008 3:45 PM
Thanks for the info!
expr:id='"post-" + data:post.id'>.....I cann't use this code.
Ainsya said :
July 26, 2008 9:43 AM
hi,
me too..i can't use this code ? there's an error..
why ? can use check it back ? a.s.a.p ..huhu
Kendhin said :
July 31, 2008 7:33 AM

@Ainsya, Kaito, Mariano, I've try it many times on some blogs and it all successfull, I don't know why you failed.

Kendhin said :
August 7, 2008 10:31 PM

@everyone who got a message "error message: Element type "div" must be followed by either attribute specifications, ">" or "/>". don't replace the number 5 code. leave it.

Ainsya said :
August 16, 2008 2:45 AM
Hi !
I have good news..this tutorial succeed !Its not fail ..thanks kendhin :)
Craig said :
August 16, 2008 4:12 PM
thanks for this tip - it works a treat
Anonymous said :
August 20, 2008 5:50 PM
This works 101%. Thank you so much. This has been my dilemma for a couple of days already. This tutorial has helped a lot indeed. God bless.
kfgd63 said :
August 22, 2008 10:11 AM
This post has been removed by the author.
kfgd63 said :
August 22, 2008 10:13 AM
I followed every steps and all saved, however when i return back to the posts in the blog all the data still there and nothing hidden or expanded !!!!!!!!!!!!!!!!!!!!

Or i have to apply it only to new fresh template
abdalslam said :
August 26, 2008 4:51 AM
.,
Anonymous said :
August 27, 2008 4:44 AM
thanks for sharing.. http://css-edge.blogspot.com/
kfgd63 said :
August 28, 2008 2:42 AM
Thanks admin for your concern and assistance.

http://kfgd63-sphinx.blogspot.com

Ciao & have a nice day.
ryodimas said :
September 6, 2008 11:04 PM
thanks it works!
September 12, 2008 11:55 PM
I get this error

Please correct the error below, and submit your template again.
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 element type "div" must be terminated by the matching end-tag "
Novitacu said :
September 20, 2008 2:18 PM
Readmore can't open.
Please help.......
thanks
September 24, 2008 12:42 PM
Readmore can't open.
Please help.......
thanks
Baronomous said :
September 30, 2008 1:25 AM
hey, this is a great tutorial, I had actually given up on trying to reproduce this on my blog because there are no truly good tutorials out there, thanks again.

I have one question though, is there a way to get the "show/hide full post" text to appear right below the text of the your post? I use an avatar and signature at the bottom of all my posts, and right now the "show/hide" text show up muttled in the middle.

any info would be great, thanks again!
www.postalrecall.blogspot.com
Anonymous said :
October 6, 2008 1:09 PM
To admin trickblog
Hi
I have one issue with my blog in blogger,after my blogpost some other party links are generated which i completly does not control that.

which says
You might like: then other party links.

I shall be highly greatful to you have a look at my site and guide me if you have any knowledge about these links, from where it is generated and how can i control them.
Thanks
Raj (my site: www.latestcarblog.blogspot.com)
awaiting reply.
October 6, 2008 3:29 PM
Thank you so much.

for Share. and we have : Blogger Templates Designs too.
Jen said :
October 7, 2008 1:46 AM
thanks! it's working!
Ronald said :
October 11, 2008 4:52 PM
I encountered error. I don't understand this kind of error "More than one widget was found with id: Feed1. Widget IDs should be unique."
ty Pls help me on this. Ty.
tabish said :
October 14, 2008 3:35 PM
ya its done for me thanks
pedo bait! said :
October 16, 2008 4:03 AM
this is fucking brilliant, thanks very much. a lot of the sites i went to were unnecessarily long and vague with this information.

i'm blind fucking drunk right now and it still worked!
DHARMiL said :
October 18, 2008 1:20 AM
but if i want to change the name frm READMoRE to ANY OTHER THEN WAT SHOULD I DO ???
worldlive said :
October 22, 2008 7:49 PM
Thanksssss....
GJ Trader said :
October 26, 2008 2:55 AM
thank you very much...
works well with IE but not with chrome browser
here my blog http://gbpjpy-analysis.blogspot.com/
Liza-Nel said :
October 27, 2008 11:25 PM
This post has been removed by the author.
Liza-Nel said :
October 27, 2008 11:32 PM
Hi there,

Ihave tried what you suggested including the tip to leave no 6 code as is but still keep on getting the following message;
"We were unable to preview your template
Please correct the error below, and submit your template again.
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 element type "div" must be terminated by the matching end tag."

What to do??? I'm near my wits end!!

My blog adress: http://www.onsgeloofgesprek.blogspot.com
Tayyab Ilyas said :
October 29, 2008 1:16 AM
Thanks for your tips and Tricks

Daily Khabarnama
aLiN said :
November 12, 2008 12:17 AM
thanks m8
http://uhavetoknow.blogspot.com
November 21, 2008 6:15 PM
Free Premium Blogger Templates, Blogger xml template, Tips and Tricks for Blogger, Blogger layout design, HTML Color codes, How to&apos;s for Bloggers

blogger-godown.blogspot.com
e-spice said :
November 24, 2008 1:11 PM
Its working... thanks a million...
Iman Taqwa said :
December 5, 2008 12:31 AM
hello, my blog also cannot use this steps..

my blog: http://iman-taqwa.blogspot.com
Ekxodus said :
December 6, 2008 11:51 PM
The location of the javascript (http://blogoholic.info/files/Readmore.js) no longer exists that's why this trick no longer works :(
Jen Wong said :
December 9, 2008 11:06 PM
it's not working anymore, will it recover soon?
December 15, 2008 1:14 PM
Expand or Collapse ( +/- ) Post Link --> Script, Widget from blogger-godown , easy to implement blogger-godown.blogspot.com
December 19, 2008 5:24 PM
i can't find it
div class='post-header-line-1'/ ...
I think my template doesn't even have it.
I only found this....
div id='content'
div id='main'
div class='content-wrapper'
b:section id='mainsection' showaddelement='no'
b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/
/b:section

/div
/div


HELP ME....PLEASE.... :o
Anonymous said :
January 2, 2009 4:34 AM
This isn't WORKING. When I click for it to show the whole post, it does not work and doesn't take me anywhere!
Zain said :
January 4, 2009 9:26 PM
Nice post !! :)

If the readers find it difficult to install.

Then there's an alternative for this, to add little "Read More" after every post of your blog.

here's the link :
http://tinyurl.com/7q4w92

or
Click my name(Zain) to see that page.
Liteon said :
January 7, 2009 11:24 AM
I wrote a new solution to this yesterday. I've found others to be quite difficult to understand (even the official).

It uses a simple [hcon] tag to hide contents. Example: [hcon]hiddentext[/hcon]

Give it a try:
http://neolit123.blogspot.com/2009/01/showhide-information-in-blog-posts.html
January 11, 2009 12:41 PM
:f Thanks.
I don't have problem about this trick.Simple n useful.
So good trick.
January 11, 2009 12:43 PM
;;)Thanks.
I don't have problem about this trick.Simple n useful.
So good trick.
Science Garage,Klik here!
January 11, 2009 12:43 PM
;;)Thanks.
I don't have problem about this trick.Simple n useful.
So good trick.
Science Garage,Click here!
Sathish said :
January 15, 2009 6:03 PM
works perfectly thanks a lot.

http://freeshare-warez.blogspot.com
AFIF-SAN said :
January 17, 2009 4:59 PM
tq!!!!!!!
humblebee said :
January 23, 2009 11:15 PM
BIG Thanks
Ankit said :
January 27, 2009 1:13 PM
Thanks IT really worked .... check out:

http://tech-tweak.blogspot.com
Anonymous said :
February 10, 2009 9:31 PM
A skin cannot contain the element: a. Only text and CDATA sections are accepted.What does that mean? help me
paraxeno said :
February 11, 2009 8:09 PM
Thanks so very much for the so useful things you have in here :D
February 20, 2009 7:34 PM
Hi, I am using minima theme with this script and in IE because of this the Sidebar simple disappears. Firefox is looking well though. Any ideas?
Saptelapatrat said :
February 20, 2009 9:48 PM
I managed to solve it. Sorry
linking2008 said :
April 4, 2009 8:02 AM
Excellent tutorial. Congratulations.
" NoBoDy " said :
April 22, 2009 5:07 PM
It really works! I love you!!
Vero said :
May 8, 2009 2:25 AM
Hi, I managed to make your code work in my blog. I was wondering if you could explain how to change the color of the "Show Full Post..." "Hide full post...". I'd like them to be more visible but they appear as links in blue in my blog...
putri-kecil said :
May 10, 2009 1:45 AM
wow...nice trick... I have use in my comment..See you
May 25, 2009 8:13 AM
Hi, i need a serious help you see
step 8. Under it you will see a code i can't find this on my html can any one help me please ASAP
ColdSphere said :
June 11, 2009 2:23 PM
thank.... all the step are perfect....
June 19, 2009 8:47 AM
Well it did work but i have a promblem when you click on read more link and it acutally dosent work it just stays there like a statue lol
sparshtiwari said :
June 20, 2009 4:55 PM
i cant found in my edit html
June 23, 2009 6:14 AM
:)) ohhhhh that's very good thanks
it work 100000%

by..............:))
June 24, 2009 7:46 AM
its not working for me its giving me error
pls help me anyone
my blog s
dextopwallpaper.blogspot.com
Ben said :
July 9, 2009 12:03 AM
This post has been removed by the author.
Ben said :
July 12, 2009 8:05 AM
Very useful! my blog:
http://amazingly-acoustic.blogspot.com

I used to use another type of code but it became redundant when I needed the Show/Hide on a number of posts. This code, however can be used on a lot(if not all) of your posts.
r4dit3 said :
July 21, 2009 1:25 AM
thanks.... boss :)
[za] said :
July 23, 2009 11:27 PM
Hi!

I used this code last year to get the show/hide feature and it's been working flawlessly until...
now!

My Show post pulls up the following error in the status screen below the browser:

javascript:void(0);

I don't know what it means but the link "show post" (more cents on my blog) isn't working anymore.

Any suggestions?

Thanks!
[¯Ô¯]njoy said :
July 24, 2009 7:57 AM
[za] and I have the same problem here. Any suggestions?
Anonymous said :
July 24, 2009 2:43 PM
Hi The function has worked very well for the last few months but now it does not work. Is this due script src='http://kendhin.890m.com/Readmore.js' becoming unavailable? and can anything be done to get it working again

Thanks
Ben said :
July 27, 2009 9:23 PM
Same here, must be that the javascript isn't there anymore?
Pedro Sá said :
July 28, 2009 7:23 PM
hi. Did you guys found any solution to this problem. This is not working in my blog neither.
paraxeno said :
July 29, 2009 5:27 PM
same here, about the div thingy, previous version of script you had worked just fine...
paraxeno said :
July 30, 2009 3:10 AM
or something is missing sigh...
please can you fix this?
Fahad said :
August 5, 2009 1:38 AM
nice post
http://about-new-blogger.blogspot.com
jcargoo said :
August 11, 2009 3:13 AM
Same problem for those who are looking to fix Chrome fullpost issue was reported here:
http://www.google.com/support/forum/p/Chrome/thread?tid=6b3d967e9160c84b&hl=en
Anonymous said :
August 26, 2009 12:16 PM
Those looking for the missing kendhin javascript file, it seems to work to substitute as the source file:
http://amen24.googlepages.com/Readmore.js

per the nice person at:
http://graphicpedia.net/?p=50

(you may also want to save the js file somewhere)
Arafin said :
September 21, 2009 1:36 PM
FOE EXCLUSIVE BLOGGER TIPS TRICKS & FULL VERSION BLOGGER TEMPLATES VISITE

http://tips-tricks-for-blogger.blogspot.com/

U WILL BE SURPRISE CHECK THIS OUT MAN!
khan said :
September 30, 2009 12:51 AM
Thanks IT really worked .... check out

www.mobilesoftworld.com
October 2, 2009 10:02 PM
even the following doesnt work
http://amen24.googlepages.com/Readmore.js

any advice
Awais Akram said :
October 23, 2009 5:57 PM
It didn't work i try it couple of time

Post a Comment