Wednesday, 10 June 2015

How to show post title only in homepage

1.Go to your blog template section (Dashboard → Template → “Edit HTML” button).
2.Scroll down to where you see the </head> tag.
3.Copy and paste below code just before the </head> tag.

<style type='text/css'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>

.post-body {display:none;}
.post-footer {display:none;}
.comment-link {display:none;}
.post img {display:none;}
.post blockquote {display:none;}
.post blockquote p {display:none;}
h2.date-header {display:none;}
.post-labels {display:none;}
.post-rating {display:none;}

</b:if>
</b:if>
</style>

4.Now save the template.

No comments:

Post a Comment