Monday, 31 May 2010

Removing Automatic readmore hack from static pages-blogger

Most of the Blogger's now days are using automatic read more hack with customized thumbnail.Blogger in drafts have recently announced a great feature called static pages (standalone pages).
Previous version of the Read more script does not have necessary modifications for static pages.So if you are using blogger template with older version of read more than you need to edit the template manually to remove read more option from web pages.and letting your pages display as standalone pages.

Do check out my previous post Show post titles on Home page Only and Add reply option to blogger like wordpress

Follow easy instructions to remove automatic read more from blogger static pages -

Just Login To Blogger and Go To (Dashboard → Layout → Edit Html → Expand Widgets → Press Ctrl+F) and now search for below codes.

<div class='post-body'>

<b:if cond='data:blog.pageType == &quot;static_page&quot;'><br/>

<b:if cond='data:blog.pageType != "item"'>

<div expr:id='"summary"'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb("summary<>");
</script> <span class='rmlink' style='float:right;padding-top:20px;'><a expr:href='data:post.url'> read more "<data:post.title/>"</a></span>

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


<div style='clear: both;'/> <!-- clear for photos floats -->

What you have to do is search for the code similar to this in your blogger template and code and add the red code in the same position as i have added to above code.
This will solve your problem by removing automatic read more hack from static pages

No comments:

Post a Comment