Unfortunately, the Simple template applies it's background color to the entire content section meaning we can't simply set the header to a transparent background. Instead we're left to alter a number of styles to get the job done.
Making the Simple Header Transparent
Two styles applied to four total template elements do most of the work. Start by opening Design->Edit HTML and Ctrl+F to find /* Mobile. Now, paste these lines just above:
.header-outer, .content-inner { background-color: transparent; }Correct Margin and Padding
.main-outer, .tabs-outer { background-color: $(content.background.color);}
Preview your changes and you should see a transparent header with a colored background behind your tabs and blog. Unfortunately, the tabs section will overflow to the sides and the blog content will have odd looking bars to the side. Correcting these problems requires changing the padding and margin with two more styles. Paste these just below the first two.
.tabs-inner .widget ul { margin: 0px -15px;}
.content-inner{padding: 0px;}
Remove the Box Shadow
You probably notice the header is broken up by shaded bars on either side. This is the result of a box shadow style. To fix it just remove the styles responsible. Search for .content-outer { and remove the four lines with box shadow in them. Preview again and things should look nice and smooth across the header. Below is a preview of these changes, along with some other tweaks of my own applied to this blog.
Other Issues
The exact look you're going for with the header may still not be right. Simple template applies a number of margin and padding rules which may throw things off a bit. A prior post on header customization is a good place to start looking for other tweaks. If you're having problems I can likely help solve them, just leave a comment with a link to the blog and I'll see what I can do.
Summary
The Simple template makes it anything but simple to create a transparent header. Several styles come into play, far more than some other templates. Still with a little knowledge it can be done without too much pain. Keep in mind though this tutorial is based on an unmodified template, so if your template is heavily modified additional work may be required. Good luck with your blogging and I hope this helps get the look you want.
10 comments :
YOU are a genius! Thank you for such simple and concise instructions! Works perfectly!
Thanks so much! Your instructions are clear and accurate!
THANK YOU!
Hi!
Thank you very much for the tutorial. I have troubles to correct Margin and Padding and I don`t know why. Can you help me, please?
THANK YOU SO MUCH! :)
I have followed your tutorials, but the background/bars around my title remain. Do you have any additional advice?
http://rconradbane.blogspot.com/
Hi,
I cannot find this: /* Mobile anywhere in my template? Can you help? Thanks in advance
Hey,
I can't find the "/*mobile" anywhere, too.
Please help us.
Thanks in advance!
Hello James, I've changed my default header in order to place three icons with twitter, feed and email (image mapping). Now, I would like to delete the purple border and mainly the grey transparent colour that you can see to both sides of the actual header.
The code is different since january 2011, so I can't find the correct lines in the template to modify them. Its name is "Fantastico S.A., Awesome Inc.".
Could you help me to solve this, please?.
Thank you in advance.
Best regards.
http://neodespierta.blogspot.com
I have literally been looking for this for hours. THANK YOU so much!
Post a Comment