How To Hide All Posts From Blogger Homepage

Post Highlights [Table of Content]

     How To Hide All Posts From Blogger Homepage?

    How To Hide All Posts From Blogger Homepage

    Method 1: Hiding All Posts From Homepage


    Watch Video





    Find this line of code in your blogger theme HTML section

    Note: If you find 2 lines of codes replace all of them with the below code.


    <b:include data='post' name='post'/>
    Replace this line of code with the below code

    <b:if cond='data:blog.url != data:blog.homepageUrl'>
    <b:include data='post' name='post'/>
    </b:if>

    Save Template and you are done

    Method-2: Hiding Specific Label


    If you want to hide a specific label/category then replace the same line of code with the below code


    <b:if cond='data:blog.url == data:blog.homepageUrl'>
    <b:loop values='data:post.labels' var='label'>
            <b:if cond='data:label.isLast == "true"'>
                <b:if cond='data:label.name != "add label here"'>
                    <b:include data='post' name='post' />
                </b:if>
            </b:if>
        </b:loop>
    <b:else/>
        <b:include data='post' name='post' />
    </b:if>

    Note:
    Don't forget to change 'add label here'

    Replace with your 'label name' you want to hide.
    Comments Section