I read a lot of posts on -How to remove "Showing posts with label..." message that appears in blogger when a users clicks on a label. All of them however, ask you remove a section of the code that appears in "Edit HTML" in blogger dashboard.
I, personally wouldn't want to delete code and replace them with other code for 2 reasons :
Hope you found it useful. Please comment! It will make my day!
I, personally wouldn't want to delete code and replace them with other code for 2 reasons :
- It can easily mess up the existing code and spoil the template.
- If you want to revert back to the original , you will have to struggle to remember the old code as well as the structure.
- This is the annoying text we want to remove..
- Go to Templates -->Edit HTML
- Click on Proceed
- Then click on the
Expand Widget Templates check box. Make sure its checked. Find the following code....
<b:includable id='status-message'> <b:if cond='data:navMessage'> <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> <div style='clear: both;'/> </b:if> </b:includable>
- Comment out the lines 5 to 23 by enclosing them within <!-- and --> as shown below.
<b:includable id='status-message'> <b:if cond='data:navMessage'> <!-- <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>--> <div style='clear: both;'/> </b:if> </b:includable>
- Done! Save Template and now check your blog by clicking on a label.
Hope you found it useful. Please comment! It will make my day!
Awesome stuff. Thanks for the help.
ReplyDeleteThanks a ton! It was really helpful.
ReplyDeleteThis tutorial has additional feature but still I don't like this. It is really working method but it has a flaw that is it stops all other status messages from appearing too for example you also see a message on 404 page by default which can also be customized or on search query page. If you apply the above method, not only Labels message is gone but also other messages which is a loss to your blogging. Here you can find the correct method to remove showing posts with label which doesn't effect others.
ReplyDelete