Blogger - Static Page Remove Read More — Blogger , Code , Hack — Blogger Blog by Switcher

.

Blogger - Static Page Remove Read More


Blogger Static Page Remove Read More 1 Blogger Draft gave us static pages!

Along with the new Blogger Static Pages we get new issues while trying to merge the static pages with our Blogger templates.

One issue that was brought to my attention by David Bergeron in a comment here on SoSwitcher.blogspot.com was - How do we remove the “Read more…” link/text from the new Blogger Static Pages?

It took a few minutes to tweak the new template code, to remove the “Read more…” text/link from my new “Contact Me” static page (top left corner of this blog).

I doubt everyone has the exact same “Read more…” code in their template, so I’ll show the steps I took to fix this issue.

1) Backup your template.

2) Open your template in a text editor, I used the Blogger Dashboard text editor, & made sure to check the “Expand Widget Templates” checkbox.

3) 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…)

4) 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>

5) 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>

 


dxf file
 

Labels

Recent Comments

.

© 2012