Remove "Read More" Hack From Static Pages On Blogger

Monday, 6 June 2011

Remove "Read More" Hack From Static Pages On Blogger

Blogger using old version of "Automatic read more" feature has an problem on static page. So, if you are using old version blogger templates then you need to edit the template manually to remove "read more" option from the static pages.

Many of the bloggers uses "Read More" option for the posts in home pages and obviously it gives a professional look to your blog but "Read More" option in your static page will reduce blog appearance ,So here are steps to Remove "Read More" Hack From Static Pages On Blogger

  • Backup your template.
  • Open your template in a text editor, I used the Blogger Dashboard text editor, & made sure to check the “Expand Widget Templates” checkbox.
  • In my browser I did a search for the text “Read more”, make sure to search for the exact text that shows in your blog (Read more, Continue, etc…)
    • My old “Read more"…” template code looks like this:
    <b:if cond='data:blog.pageType != &quot;item&quot;'><br/>
    <a expr:href='data:post.url'>Read more...</a>
    </b:if>
    • My new “Read more…” template code looks like this:
    <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'>Read more...</a>
    </b:if>
    </b:if>

     

    Home