Saturday, January 17, 2015

Blogger - How to hide post-body in main page

11:09 AM Posted by Peter Nguyen No comments

I was doing another blog editor when I suddenly ran into a task that I need to hide the post-content in blogger mainpage, here is how you should do it properly:class='post-body entry-content'

Search for ALL, there may be more than 1 depends on what template you are using:
class='post-body entry-content'
Inside that <div> tag you will find this:
 Add these lines of code exactly below it:
<b:if cond='data:blog.pageType != "item"'>
    <style type='text/css'>
        .hidden {
            display: none;
 Then, whenever you want to hide all post content, or just part of the post, just wrap it with the tag: hidden: (post it in HTML mode)
 <div class="hidden">
Something you want to hide from main


Post a Comment