Footer Gradient
-
Hi Andre,
I’m just messing around with the CSS but I didn’t find out how to get rid of the small gradient under the footer wrapper area. Also I want a dark footer when the site is viewed from mobile devices but don’t want any footer (or just white) when it’s viewed in desktop browsers. And if I change the Footer color in the CSS or in the Theme’s Customize menu it will affects both Views.Regards,
Nogre
-
The gradient is actually a shadow which is done from this:
@media (min-width: 68em) { .content-area { -webkit-box-shadow: 0 0 30px 0 rgba(0,0,0,0.2); box-shadow: 0 0 30px 0 rgba(0,0,0,0.2); } }To cancel that out, you would do this:
@media (min-width: 68em) { .content-area { -webkit-box-shadow: none; box-shadow: none; } }Having alternate footer background colours is a bit more trickier and requires overriding the theme’s colour settings and also using media queries.
Example, for black on small screens then white on larger:
@media (min-width: 20em) { #footer-wrapper { background-color: #000; } } @media (min-width: 68em) { #footer-wrapper { background-color: #fff; } }You might have to try different min-widths on the media queries to get it right. The 68em size is for desktops and the 20em is for mobile devices. You would also have to override the text colour for footer menu links, social icons and copyright text as well with the above code. Overall, this is going to be some work involved to get that capability. This means you won’t be able to use the customizer colour settings for the footer elements.
Thank you so much, it works like a charm!
The topic ‘Footer Gradient’ is closed to new replies.
