Whenever you click on any label link, a status message "Showing posts
with label .... show all posts" shows up. We can remove this message
using a simple hack.

We can remove this 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 go to Template > Edit HTML
- In Blogger default templates, search for
<body expr:class='"loading" + data:blog.mobileClass'>
and in custom templates, search for<body>
- Add the below code just after above code.
Your new code will look like this. Now save template and check this hack by clicking on any label link.<b:if cond='data:blog.pageType == "index"'> <b:if cond='data:blog.searchLabel'> <style> .status-msg-wrap{display:none;} </style> </b:if> </b:if>
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 - click on Expand Widget Template
Press Ctrl+F and find the following code. If you are not successful, search only the first line
<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
Post a Comment