Hide Label tag In Blogger Posts

Hide-Label-tag-in-Blogger-postsThere are some pages like about page,contact page,site map page that we don't want to display the label names of the post.So Do we not add the label name for those pages ?No...It is not good for your site's SEO status.You might lose your site's internet link juice.Its like you let your opponent to rank in higher place in search engines than you.But we want to hide the label tag in blogger posts.so what we have to do....You just need to add some piece of code in template.This post will show to do this task easily.

Step 1: Sign in to your blogger account.
Step 2: Now go to Dashboard >> Template and get a copy of your template.
Step 3: Click on "Edit HTML" button and search for below code in your template.
<span class='post-labels'>
Step 4: There might be some block of code followed by above code.

 <span class='post-labels'>
                                        <b:if cond='data:post.labels'>
                                          <data:postLabelsLabel/>
                                          <b:loop values='data:post.labels' var='label'>
                                            <a expr:href='data:label.url' rel='tag'>
                                              <data:label.name/>
                                            </a>
                                            <b:if cond='data:label.isLast != &quot;true&quot;'>
                                              ,
                                            </b:if>
                                          </b:loop>
                                        </b:if>
                                      </span>

How to Hide Label Tag From All Blog Posts  



Paste below code just above of highlighted code.

<b:if cond='data:blog.pageType != "item"'>

Now add below code just below of closing span tag.</span>

</b:if>
The whole code for hiding label tag in all blog posts will look like below.

<b:if cond='data:blog.pageType != "item"'>
 <span class='post-labels'>                                     
<b:if cond='data:post.labels'>
                                          <data:postLabelsLabel/>
                                          <b:loop values='data:post.labels' var='label'>
                                            <a expr:href='data:label.url' rel='tag'>
                                              <data:label.name/>
                                            </a>
                                            <b:if cond='data:label.isLast != &quot;true&quot;'>
                                              ,
                                            </b:if>
                                          </b:loop>
                                        </b:if>
                                      </span></b:if>

How to Hide Label Tag From selected Blog posts



Paste below code code right before of highlighted code in step #4.

<b:if cond='data:blog.url != "URL OF Selected Post"'>
Replace URL OF Selected Post with the link of the post page where you want to hide the label tags.

Now add the closing tag of above code just below of </span> code.

</b:if>

If you want to hide label tag on more than one blog post page,just repeat above coding method.Look at below example where i hide the label tag in three pages.You can hide n amount of posts if you have :p

<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-labels'>                                    
                             <b:if cond='data:post.labels'>
                                          <data:postLabelsLabel/>
                                          <b:loop values='data:post.labels' var='label'>
                                            <a expr:href='data:label.url' rel='tag'>
                                              <data:label.name/>
                                            </a>
                                            <b:if cond='data:label.isLast != &quot;true&quot;'>
                                              ,
                                            </b:if>
                                          </b:loop>
                                        </b:if>
                                      </span>
</b:if>
</b:if>
</b:if>

Step 5: Save your Template.


Need Help ...?


If you have any query when making above changes in your template or other any question,just leave a comment.I think that you'll enjoy reading showing and hiding widgets in any page tutorial.Happy blogging buddies :)

Pengelola Blog : ABDUL WAHAB

Judul : Hide Label tag In Blogger Posts
Ditulis oleh : Kejutan Internet pada hari
Rating Blog : 5 dari 5
Terima kasih Anda telah membaca artikel tentang Hide Label tag In Blogger Posts
Anda boleh menyebar luaskannya atau mengcopy paste-nya jika artikel ini sangat bermanfaat bagi Blog dan teman-teman anda.
Namun jangan lupa harap memberikan link aktif dofollow yang mengarah ke URL ini ya
http://kejutaninternet.blogspot.com/2013/07/hide-label-tag-in-blogger-posts.html

Dan Terima kasih sekali lagi atas kunjungan Anda.

Kritik dan saran atau apapun bisa anda sampaikan melalui kotak komentar.
Dan mohon maaf jika komentar atau pertanyaan tidak bisa cepat saya respon,
karena Saya tidak bisa selalu online selama 24 Jam.


Mau Di Buatkan Blog Siap Pakai Seperti Ini ?.

Artikel Terkait

Previous
Next Post »