Your cart is currently empty!
Homepage › Community Forums › Epik Theme Support › Change Header Color Only
Tagged: Change Header Color Only
Have three asks:
1.Want to change the Header background color only to White from Teal – everything I have done changes the footer also.
2.Want a line of Teal at the top and bottom of the white
3.Want to move the Social Media links into the Menu Area
Thank you in advance
Add this piece of code to change it to white –
.epik-pink .head-wrap {
background: #fff !important;
}
Or you could change this in your css –
.epik-pink .head-wrap, .epik-pink .welcome, .epik-pink .home-feature-bg-dark, .epik-pink .author-box, .epik-pink .footer-widgets {
background: #008c82;
color: #eee;
}
That is where it’s coming from. They are all grouped together, so if you want to style just one of them individually, then you would have to separate them.
I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com
Perfect Eric, the first one did the trick – THANKS!!!
Figured out the line at the top and bottom of the header – just need to move those Social Media icons to the menu row.
.epik-pink .head-wrap {
background: #fff;
border-top: 6px solid #008c82;
border-bottom: 6px solid #008c82 !important;
}
I removed this code – and the mobile site is back to normal.
Still need to remove the white space and move the Social media icons though
.home-feature-bg-alt .wrap {
margin: 0 auto;
overflow: hidden;
padding: 20px 0 80px;
width: 1140px;
}
Tim,
The site looks fine when I just checked it. You remove the white space by changing just the
size in the padding, the first value.
.home-feature-bg-alt .wrap {
margin: 0px auto;
overflow: hidden;
padding: 0px 0px 80px;
width: 1140px;
}
Change the padding to 0px 0px 80px
Hey Andy,
When I added:
.home-feature-bg-alt .wrap {
margin: 0px auto;
overflow: hidden;
padding: 0px 0px 80px;
width: 1140px;
}
The mobile version was a mess – see above (the white space was good on desktop.
I removed that code and the mobile was back to normal but white space still an issue.
/*
Home Feature BG Alt
---------------------------------------------------------------------------------------------------- */
.home-feature-bg-alt {
background: #fff;
}
.home-feature-bg-alt .wrap {
margin: 0 auto;
overflow: hidden;
padding: 120px 0 80px;
width: 1140px;
}
Tim,
Not sure where you are adding this to your .css. The above code is standard original from the Epik theme. Simply change the padding of 120 to 0px 0 80px;
This removes the white space. Is there a chance you are adding this to your “pink” section which you altered the colors? In other words, are you doing it twice? Or it’s causing a conflict if so?
I changed the color choices for my site by creating a whole new color selection, which then is available from the drop down menu in the WP customizer (Theme settings). I had to change the functions.php file to add the new “menu item”, and then I simply cut/pasted one of the existing color areas, and renamed it to my new color. This way any changes I did pertaining to color custimizations on the website would be retained in that “selection”.
// Create additional color style options
add_theme_support( 'genesis-style-selector', array(
'epik-black' => __( 'Black', 'epik' ),
'epik-blue' => __( 'Blue', 'epik' ),
'epik-darkblue' => __( 'Dark Blue', 'epik' ),
'epik-gray' => __( 'Gray', 'epik' ),
'epik-green' => __( 'Green', 'epik' ),
'epik-orange' => __( 'Orange', 'epik' ),
'epik-pink' => __( 'Pink', 'epik' ),
'epik-sage' => __( 'Sage', 'epik' ),
'epik-purple' => __( 'Purple', 'epik' ),
'epik-red' => __( 'Red', 'epik' ),
) );<!--formatted--><!--formatted-->
The above is the color choices, and I added “sage” (a light green). Then I changed the .css to this:
/* Epik sage
--------------------------------------------- */
.epik-sage a {
color: #8f9779;
}
.epik-sage .site-title a:hover {
color: #ddd;
}
.epik-sage .site-description {
color: #ddd;
}
.epik-sage .genesis-nav-menu a {
color: #fff;
}
.epik-sage .site-header .widget-area {
color: #eee;
}
.epik-sage .genesis-nav-menu a:hover,
.epik-sage .genesis-nav-menu .current-menu-item > a {
color: #5a604a;
}
.epik-sage .nav-primary .sub-menu a:hover,
.epik-sage .nav-secondary .sub-menu a:hover,
.epik-sage .site-header .sub-menu a:hover,
.epik-sage .site-header .genesis-nav-menu .sub-menu .current-menu-item > a,
.epik-sage .genesis-nav-menu .sub-menu .current-menu-item > a,
.epik-sage .genesis-nav-menu .sub-menu .current-menu-item > a:hover {
color: #4a6050;
}
.epik-sage h1 a,
.epik-sage h2 a {
color: #333;
}
.epik-sage h1 a:hover,
.epik-sage h2 a:hover {
color: #8f9779;
}
.epik-sage .head-wrap,
.epik-sage .welcome,
.epik-sage .home-feature-bg-dark,
.epik-sage .author-box,
.epik-sage .footer-widgets {
background: #8f9779;
color: #eee;
}
.epik-sage .head-wrap a,
.epik-sage .welcome a,
.epik-sage .home-feature-bg-dark a,
.epik-sage .author-box-title,
.epik-sage .author-box a,
.epik-sage .footer-widgets a {
color: #fff;
}
.epik-sage .head-wrap p,
.epik-sage .welcome p,
.epik-sage .home-feature-bg-dark p,
.epik-sage .author-box p,
.epik-sage .footer-widgets p {
color: #eee;
}
.epik-sage .archive-pagination li a:hover,
.epik-sage .archive-pagination li.active a {
background: #8f9779;
}
.epik-sage .content .portfolio .more-link,
.epik-sage .plan-button a {
background: #8f9779;
color: #fff;
}
.epik-sage .content .portfolio .more-link:hover,
.epik-sage .plan-button a:hover {
-moz-transition: all .5s ease;
-o-transition: all .5s ease;
-webkit-transition: all .5s ease;
opacity: .7;
transition: all .5s ease;
}
.epik-sage button,
.epik-sage input[type="button"],
.epik-sage input[type="reset"],
.epik-sage input[type="submit"],
.epik-sage .sidebar .enews-widget input[type="submit"],
.epik-sage a.button.small,
.epik-sage a.button.medium,
.epik-sage a.button.large,
.epik-sage .circle {
background: #8f9779;
}
.epik-sage .footer-widgets button,
.epik-sage .footer-widgets input[type="button"],
.epik-sage .footer-widgets input[type="reset"],
.epik-sage .footer-widgets .enews-widget input[type="submit"],
.epik-sage .footer-widgets a.button.small,
.epik-sage .footer-widgets a.button.medium,
.epik-sage .footer-widgets a.button.large,
.epik-sage .footer-widgets .circle {
background: #111;
}
.epik-sage .enews-widget input:hover[type="submit"] {
-moz-transition: all .5s ease;
-o-transition: all .5s ease;
-webkit-transition: all .5s ease;
opacity: .7;
transition: all .5s ease;
}
.epik-sage .footer-widgets input[type="submit"] {
background: #111;
}
.epik-sage .footer {
background: #8f9779;
}
<!--formatted--><!--formatted-->
This gave me a new color scheme, added to the existing choices. I could have deleted or renamed “pink” since I would never use that (or purple).
Anyway, your site, when I changed just that padding, took out the white space.
Great advice on the color scheme change – I just used “pink” and changed the colors – will rework.
So I changed 120 to 0
No change on desktop or mobile – cleared cache and browsing history on both and nothing changed.
.home-feature-bg .wrap {
margin: 0 auto;
overflow: hidden;
padding: 0px 0 80px;
width: 1140px;
}
I just checked your website and the change is not showing up. I did it using “inspect element” and it worked, removing the white space.
Be sure too find the right section in your site.
It is line 1468 in your .css
Do you know how to find the line numbers?
Use “Better File Editor” , a plugin by Brian Petty. Install it to your website, and then using the editor will show you line numbers and you can change colors. It’s great.
Here is a screen shot. It works, the white space is done. This is using the “inspect element” on your browser.
Weird – the Style.css show it at 0px, when I do an inspect element it’s still at 120px
I just went to your site: it’s working.
You need to clear your cache on your browser, and are you using a cache plugin? Like Yost or WP Super Cache??
REFRESH!!
Just loaded WP Super Cache, cleared cache again – closed chrome and reopened and still no change – even tried Firefox…
OK. I just checked Chrome, IE, and Firefox, and Iphone on your site. All are working fine with the space removed and the correct .css is showing.
If you cleared your website cache, then you need to go to your website browser (computer) and clear cache / history, etc. and refresh.
It’s been fixed and looks great..but you’ve got something stopping you from seeing your changes. This can goof things up as you make changes (the right ones) and don’t see them, so you mess with another area and so on…and that gets pretty frustrating. Sorry, can’t see what is up from your chair!
Thanks so much Andy – I really appreciate ALL your help. I will take a break and revisit – but as long as everyone else sees it correctly guess we are good LOL
It’s working now…the Snow in Michigan slowing down my update – Thanks Andy you are the best