Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Sunday, June 12, 2011

Hide Label Tags and Author Name In Blogger Posts


Pin It

HIDE-LABELS-AND-AUTHORThere are some pages like your contact page, about page, table of contents page where you don't want label tags or "Posted by Author at xyz time"  text to appear.  You can view any of my page in the navigation menu above and you will observe that you see no tags or author names below post titles.

How To Hide Label Tags On Selected Pages Of Blogger?

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Check the "Expand Widget Templates" box
  4. Search For,

<span class='post-labels'>

    5.  Now add the following code just above it,

<b:if cond='data:blog.url != "URL OF Selected Post"'>

Replace URL OF Selected Post with the Link of the page where you want to hide label tags.

    6.  Just 6-7 lines below the code you search for in step#4, you will find this,

</span>

    7. Just after it paste the code below,

</b:if>

    8. Save your template and visit that selected page and you will see that the labels are gone.

Hiding Author Name and Date Time On Selected Pages

Inside your template search for this,

<span class='post-author vcard'>

and just below it you will find a large code slightly similar to the one shown below,

<span class='post-author vcard'>
        <b:if cond='data:top.showAuthor'>
          <data:top.authorLabel/>
          <span class='fn'><data:post.author/></span>
        </b:if>
      </span>

      <span class='post-timestamp'>
        <b:if cond='data:top.showTimestamp'>
          <data:top.timestampLabel/>
        <b:if cond='data:post.url'>
          <a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a>
        </b:if>
        </b:if>
      </span>

 

You just need to add the following codes before and after the bolded blue lines as shown below,

<b:if cond='data:blog.url != "URL OF Selected Post"'>

<span class='post-author vcard'>
        <b:if cond='data:top.showAuthor'>
          <data:top.authorLabel/>
          <span class='fn'><data:post.author/></span>
        </b:if>
      </span>

      <span class='post-timestamp'>
        <b:if cond='data:top.showTimestamp'>
          <data:top.timestampLabel/>
        <b:if cond='data:post.url'>
          <a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a>
        </b:if>
        </b:if>
      </span>

</b:if>

 

Now again you will have to replace URL OF Selected Post with your selected page link.

Save your template and say bingo!

How to hide them on more than one page?

If you want to hide the labels and date and time on another page also then just repeat the same process. For example if you want to hide them on three selected pages then do this for date and time,

<b:if cond='data:blog.url != "URL OF Selected Post -1"'>

<b:if cond='data:blog.url != "URL OF Selected Post -2"'>

<b:if cond='data:blog.url != "URL OF Selected Post -3"'>

<span class='post-author vcard'>
        <b:if cond='data:top.showAuthor'>
          <data:top.authorLabel/>
          <span class='fn'><data:post.author/></span>
        </b:if>
      </span>

      <span class='post-timestamp'>
        <b:if cond='data:top.showTimestamp'>
          <data:top.timestampLabel/>
        <b:if cond='data:post.url'>
          <a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a>
        </b:if>
        </b:if>
      </span>

</b:if>

</b:if>

</b:if>

Do the same for hiding label tags as mentioned in step#4

Need help?

If you faced any problem just let me know. It would be a pleasure to help you. You will also enjoying read how to show and hide widgets in Blogger

That's All!


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

5 comments:

Comment Page :
Sudeep Acharya on 8:55 AM, June 12, 2011 said... #

ya really nice post......mohammad!

your blog is cool i am checking out...
you're cool man you update your blog so fastly...

Keep it up!!!
In the categories of blogger widgets,tricks..and help your blog lies in number1 top blog. but you have less number of templates.hope you will increase it....visit my blog ctips4u.blogspot.com

Mohammad Mustafa Ahmedzai on 3:31 PM, June 12, 2011 said... #

@sudeep

Thank you brother sudeep. Those kind words mean a lot. Really flattered. :)
I visited your blog MashAllah you have some great content and tech info their. I wish all the best with your blogging endeavors. More power to you pal!

Alamin on 8:39 PM, October 13, 2011 said... #

how i change author comment style

Rani Hafida on 5:57 PM, December 10, 2011 said... #

how if I want to hide author names on all pages?
Thanks before...

NY on 10:41 AM, January 25, 2012 said... #

useless...not working

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |