widget area background color
-
The background color in my footer widget area is a very light white — almost white. Is there a way to change this with CSS?
The blog I need help with is: (visible only to logged in users)
-
Hey there!
This should do it:
#tertiary.widget-area { background-color: #518bbc; border: none; }Let me know if that doesn’t work,
Sage -
-
-
OK, now that I’ve changed that gray it looks like overall the background color of my site is a super light gray. I see it more now with the contrast. There an easy way to make that white?
-
-
Absolutely. That worked great. I hadn’t really noticed it was off white until I looked really closely. Ok one more similar things if that’s OK without starting a new thread.
On my home page there is a semi transparent screen behind the white type so it’ll show up against images with a lot of white in their backgrounds. I did that with this piece of code:
#featured-content h1 a, #featured-content article.no-hero h1 a {
background-color: rgba(0,0,0,.55);
padding: 5px;
}Is there a way to do the same thing for the headings in other pages?
-
Sure is!
If you’d like the text to still be centered with the box filling the full width:
.entry-title { background-color: rgba(0,0,0,.55); padding: 5px; }Or if you’d like the text to be on the left like on your homepage, use this code instead:
.entry-title { background-color: rgba(0,0,0,.55); padding: 5px; display: inline-block; }Hope that works,
Sage -
I want it centered but with your first piece of code it puts a dark strip across most of the width of the image – not just behind the type like it is on the home page. Any way to control how wide it is?
-
Ah, and here I was thinking I was prepared with two different options :)
This should do it, you can change the code where it says 20px to be any amount and that will change the padding on the left and right of the box, in turn, controlling the width (but still in relation to the amount of text)
.entry-title { background-color: rgba(0,0,0,.55); padding: 5px 20px; display: inline-block; text-align: center; } header.entry-header { text-align: center; }Hope that helps,
Sage -
-
-
OK Sage, it worked but we have some unintended consequences on the home page. It looks like it doubled up the effect on the home page so the effect is super dark there in the featured image slider. Also, it applied the effect over the page title below on the white background (Connor Wood Bicycles), and it also put the same effect over the rollovers for the featured posts lower down on the home page. So, it’s close and is doing what we wanted on the content pages but the other things are a little screwy now. Any suggestions?
-
Ah, sorry about that!
Replacing the code with this should do it:
#page-header .entry-title { background-color: rgba(0,0,0,.55); padding: 5px 20px; display: inline-block; text-align: center; } .home #page-header .entry-title { background-color: transparent; }Let me know if that doesn’t work,
Sage -
-
To be clear. I’d like to have them left aligned on the home page, but centered on all the other pages.
-
Thanks for clarifying :)
header.entry-header { text-align: center; } .home header.entry-header { text-align: left; }Hope that helps,
Sage -
-
Hm, looks like the code is missing? In total it should look like this:
#page-header .entry-title { background-color: rgba(0,0,0,.55); padding: 5px 20px; display: inline-block; text-align: center; } .home #page-header .entry-title { background-color: transparent; } header.entry-header { text-align: center; } .home header.entry-header { text-align: left; }Does that fix it?
Sage -
Is there a way to do this with a dark drop shadow on the font rather than the gray bar in the background. That might look better anyways but I’m not sure if you can control drop shadows or how that would look.
- The topic ‘widget area background color’ is closed to new replies.