I say every chance that I get, that Labels Rock. They are very user friendly, and produce attractive results. In general.
There's one feature of labels that not everybody finds attractive, however.
The gray box.
This mysterious gray box, aka the "Status Message", may contain distracting advice like "No posts were found which match your query" or "Showing posts with label".
It will pop up unwanted, when you tweak your template - like making a static home page for the blog.
Fortunately, the mysterious gray box is not hard to remove - though it may require several tries.
Read these instructions, and decide for yourself which alternative may work better for you - then try one at a time. However you tweak your template, remember to clear cache, and restart the browser, after each try, for predictable results.
With the new Designer templates, that provide the "Add CSS" menu option, you simply need to add one CSS rule. Press "Enter", to create a blank line, before pasting the code!
With the newer Responsive templates, we can use the same technique - but the container name has changed.
The above tweak will remove everything in the status message. If you only want to remove the message for label searches, specifically, you can use a conditional, as we conditionally display template objects.
or (again, for a Responsive template)
If "Add CSS" does not produce results, and neither of the above tweaks work, try adding the above code manually, using the Template Editor. As always, first back up your template.
If simply adding CSS does not produce results, then try up to 2 (well scripted) solutions. Again, try the Template Editor. Again, always start by backing up your template. Then, Expand Widget Templates (** See Note 2, below). Find
Delete that entire block of code denoted by "Try 1", carefully. Save Template.
(Note 1:): Some people have reported that, having removed the block of code denoted by "Try 1", that the entire block of code was replaced by the template editor. If you find this to be the case, repeat the process, deleting the block of code denoted by "Try 2".
Refresh cache.No more gray box.
(Note 2): It's possible that, with some templates (possibly newer ones), the code shown above, in an expanded widget, might be better removed while un expanded. In these cases, do not expand widget templates, simply look for and delete one line of code
Having done that, backup your template, again.
There's one feature of labels that not everybody finds attractive, however.
The gray box.
This mysterious gray box, aka the "Status Message", may contain distracting advice like "No posts were found which match your query" or "Showing posts with label".
It will pop up unwanted, when you tweak your template - like making a static home page for the blog.
Fortunately, the mysterious gray box is not hard to remove - though it may require several tries.
Read these instructions, and decide for yourself which alternative may work better for you - then try one at a time. However you tweak your template, remember to clear cache, and restart the browser, after each try, for predictable results.
With the new Designer templates, that provide the "Add CSS" menu option, you simply need to add one CSS rule. Press "Enter", to create a blank line, before pasting the code!
.status-msg-wrap { display: none !important; }
With the newer Responsive templates, we can use the same technique - but the container name has changed.
.post-filter-message { display: none !important; }
The above tweak will remove everything in the status message. If you only want to remove the message for label searches, specifically, you can use a conditional, as we conditionally display template objects.
<b:if cond='data:blog.searchLabel'> <style> .status-msg-wrap, .status-msg-body {display: none;} </style> </b:if>
or (again, for a Responsive template)
<b:if cond='data:blog.searchLabel'> <style> .post-filter-message {display: none;} </style> </b:if>
If "Add CSS" does not produce results, and neither of the above tweaks work, try adding the above code manually, using the Template Editor. As always, first back up your template.
If simply adding CSS does not produce results, then try up to 2 (well scripted) solutions. Again, try the Template Editor. Again, always start by backing up your template. Then, Expand Widget Templates (** See Note 2, below). Find
<b:includable id='main' var='top'> <!-- posts --> <div class='blog-posts'> <b:includable id='status-message'> << Try 2: Remove This Line <b:if cond='data:navMessage'> << Try 1: Remove This 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> <div style='clear: both;'/> </b:if> << Try 1: Remove Thru This Line </b:includable> << Try 2: Remove Thru This Line
Delete that entire block of code denoted by "Try 1", carefully. Save Template.
(Note 1:): Some people have reported that, having removed the block of code denoted by "Try 1", that the entire block of code was replaced by the template editor. If you find this to be the case, repeat the process, deleting the block of code denoted by "Try 2".
Refresh cache.No more gray box.
(Note 2): It's possible that, with some templates (possibly newer ones), the code shown above, in an expanded widget, might be better removed while un expanded. In these cases, do not expand widget templates, simply look for and delete one line of code
<b:include data='top' name='status-message'/>
Having done that, backup your template, again.
Comments
What's the name of the 2 blogs - the one that worked, and the other that didn't?
The name of the one that doesn't work is knitaby
I followed your instructions for deleting the box and it is deleted from my html but still shows up on my blog.
please advise
www.aprilmueller.blogspot.com
thank you.
Just remove the code which is between these codes.
"< b:includable id='status-message' >
...
...
...
...
< /b:includable>
So the following code:
< 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>"
The jury is still out on this one. We've had mixed results from both procedures. So, I'll let the public vote, if you wish.
One more question: If I want an image or some text to show up just on the page of posts with one label, how would I add that into the code?
(I have sections on my blog http://travispoling.blogspot.com/ denoted by labels. So when one clicks on a label, the top of that page will have the name of the section. But I only want it on that page.)
' The widget with id "Blog1" cannot contain element: "#comment". A widget can only contain b:includable elements. '
any ideas?
Did you see that error from Try 1, Try 2, or Note 2?
http://office-phone-system-primer.blogspot.com/search/label/Office%20Phone%20System%20Basics
Put this code with the rest of the css
.status-msg-wrap,
.status-msg-body {
display: none;
}
You can also style the message using those but alas - no way to change what it says, which is what I really wanted to do.
Hope this helps!
Thanks in advance...
The "Read More" text in the "Jump Break" option is set in the "Blog Posts" wizard in Page Elements.
I now finally have my on "Home" page for my blog: Here is my blog, you may want to have a look at it:) : http://www.rocknock.co.cc/2010/05/birth-of-progressive-metal-watchtowers.html
PS: I simply removed the line in the EXPANDED Mode and the static block got removed. Thank you so much again.
That's a kewl variation! You positioned the home page Welcome message gadget just below the header, instead of just above the posts. That makes the message spread across the entire blog, and above the sidebar. That makes it more visible. Nice job.
Sure, you can "hack" it - that's what you're doing here.
Just replace "<data:navMessage/>" (in 2 places, see above) with whatever message pleases you. And, don't delete anything.
Thescathingbrit.blogspot.com
Thanks!
Quick, Easy and Healthy Recipes
Barbara
http://brandonpretz.blogspot.com
I've tried Try 1 and Try 2, and also Note 2. I am unable to find the code listed for Note 2, and despite deleting the code for the previous tries, that darn gray box is still showing up!
Do you have any suggestions? Thanks so much! http://www.breakwaterbusiness.com
Here is where I get to suggest that you post in Blogger Help: Something Is Broken, so we can look at your blog in detail.
So I'm good! I'm better than good! Thank you Chuck!