Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» APC – December 2017
Thu Nov 09, 2017 7:28 pm by Admin

» iCreate UK – November 2017
Thu Nov 09, 2017 7:25 pm by Admin

» Transformers First Strike #1 [2017]
Thu Nov 09, 2017 7:19 pm by Admin

» Batman – Lost #1 [2017]
Thu Nov 09, 2017 7:15 pm by Admin

» Movavi PDF Editor v1.0 Multilingual
Sat Oct 14, 2017 9:59 pm by Admin

» Fast Bikes – November 2017
Sat Oct 14, 2017 9:56 pm by Admin

» Success: The Psychology of Achievement by DK
Sat Oct 14, 2017 9:54 pm by Admin

» The World’s Scariest Places by The Editors of LIFE
Sat Oct 14, 2017 9:51 pm by Admin

» Hunting Pirate Heaven: In Search of Lost Pirate Utopias by Kevin Rushby
Sat Oct 14, 2017 9:50 pm by Admin

RSS feeds


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 



How to remove "Showing posts with label" in Label posts

View previous topic View next topic Go down

How to remove "Showing posts with label" in Label posts

Post by Admin on Tue Jun 04, 2013 1:49 pm




Blogger
uses a variable called data:navMessage for putting this message to your
template. We can remove this from your template and the label message
won't be there anymore. But there is a problem with this method, your
custom 404 page won't show up, because Blogger uses the same
data:navMessage variable for inserting your custom 404 message.
If
you want to keep custom 404 message option from Blogger settings, use
the first method to hide the message and if you are OK with removing 404
page, use the second method.

Method 1: Hide "Showing posts with label" message

First and always backup your template before any editing

Then go to Template > Edit HTML
In Blogger default templates, search for
Code:
<body expr:class='"loading" + data:blog.mobileClass'>
....... and in custom templates, search for

Code:
<body>
Add the below code just after above code.

Code:
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.searchLabel'>
<style>
.status-msg-wrap{display:none;}
</style>
</b:if>
</b:if>

Your new code will look like this.




Now save template and check this hack by clicking on any label link. remove label status message
Code is added just after body tag

Method 2: Remove Showing posts with label message and custom 404 page option

Go to Template > Edit HTML
Press Ctrl+F and find the following code. If you are not successful, search only the first line

Code:
<div class='status-msg-wrap'>
        <div class='status-msg-body'>
          <data:navMessage/>
        </div>
        <div class='status-msg-border'>
          <div class='status-msg-bg'>
            <div class='status-msg-hidden'><data:navMessage/></div>
          </div>
        </div>
      </div>

Delete the entire code and Save the template, now check the result by clicking any of your labels

Admin
Admin

Posts : 2759
Join date : 2012-06-08

View user profile http://yourforum.americantalk.net

Back to top Go down

View previous topic View next topic Back to top



 

Permissions in this forum:
You cannot reply to topics in this forum