proohu01
Member
Posted 5 months ago #
Does anyone know if the site header of the great Twenty Eleven theme can be made transparent?
I have some nice background on the site using the "better Backgrounds" plugin, and a site logo in the site title area. I think that they would look even better if the site title and site description area would not be so white.
can be done.
start by creating a child theme (if you haven't already) to work with http://codex.wordpress.org/Child_Themes
then post a link to your site
proohu01
Member
Posted 5 months ago #
I am using a child theme already.
Site:
proohu01
Member
Posted 5 months ago #
Try using Firefox with the Firebug add-on for this kind of work.
http://getfirebug.com/
proohu01
Member
Posted 5 months ago #
Thanks for the reply. I'am afraid that my web developer skills are not so great. I was hoping someone could point me in the right direction. Is it something that has to be done in the style.css?
Yes - hence the suggestion to use Firebug.
the difficulty with twenty eleven is that the background of the div #main does not stretch to the bottom bacause the floats are not cleared;
try to add this to style.css of the child theme:
#page { background: transparent; }
#main { background: #fff; }
#colophon { background: #eee; }
and edit footer.php, to add:
<div style="clear:both;"></div>
directly before:
</div><!-- #main -->
(not cross-browser tested - just evaluated with firefox web developer add-on - a similar tool to firebug)
proohu01
Member
Posted 5 months ago #
Thanks! That's almost perfect.
I tried to fix the last couple of glitches myself by downloading Firefox and Firebug. I can definitely see that this can be a useful tool in the right hands. It took me quit some time to get rid of the blank space between the menu and the main text area. I did that by adding this to the css:
#access {
margin-bottom: 0;
}
I was unable to find out how to move the small grey line, at the top (above the logo), down a bit. I think it would look best if that grey line was just on top of the random header images.
Could you please help me out with this last bit?
Site..
possibly:
#branding { border-top: none; } /*remove the grey border at the top*/
#branding img {
border-top: 2px solid #bbb; /*add the grey border to the header image*/
padding-top:5px; /*optional to add a space between the image and the grey border*/ }
#branding #site-title img { border-top: none; } /*correction to remove the border from the logo image*/
proohu01
Member
Posted 5 months ago #
Absolutely perfect! Exactly what I was looking for. Thanks for you input and time.
To summarize...
This is what I had to add to the style.css
#page { background: transparent; }
#main { background: #fff; }
#colophon { background: #eee; }
#access { margin-bottom: 0; }
#branding { border-top: none; } /*remove the grey border at the top*/
#branding img { border-top: 2px solid #bbb; } /*add the grey border to the header image*/
#branding #site-title img { border-top: none; } /*correction to remove the border from the logo image*/
And this is what I had to add to the footer.php
<div style="clear:both;"></div>
Directly before:
</div><!-- #main -->