Hi Kharis
Thanks for the reply. I’ve managed to resolve the gap on other pages but now the #wpadminbar is overlapping the contact bar. Is there a way to shift everything down when the adminbat is present?
This is the code I have in my child theme style sheet:
/*--------------------------------------------------------------
Contact Header
--------------------------------------------------------------*/
.header-contact-info {
width: auto !important;
}
.header-contact {
padding: 5px;
}
#menu-social {
width: auto !important;
}
/*Non-homepage pages*/
body .admin-bar.no-hero .site-header.fixed,
body .admin-bar.no-hero .site-header.float-header.fixed, body .site-header {
top: 0 !important;
}
.site-header .header-contact,
.has-hero .site-header .header-contact {
position: static;
padding-bottom: 5px;
padding-top: 5px;
}
.site-header.float-header .header-contact {
padding-bottom: 5px;
padding-top: 5px;
}
:not(.float-header).site-header .header-contact, .header-contact {
background-color: transparent !important;
}
.float-header.site-header .header-contact, .header-contact {
background-color: transparent !important;
}
/*Font Colors*/
:not(.float-header) .has-hero .header-contact, .has-hero .header-contact a {
color: red;
}
.float-header .has-hero .header-contact, .has-hero .header-contact a {
color: green;
}
With the colors of the contact bar matching header on scroll, I would also like the font colors to change when the header area is either at the top or floating. So far the code makes non & and floating header green but should be indeed red as shown in the code. I also noticed the ‘a’ links are not affected. Could you help me out here please?
Many thanks
Will