- This topic has 7 replies, 2 voices, and was last updated 3 years, 4 months ago by David.
-
AuthorPosts
-
December 10, 2020 at 5:32 am #1574249nomind
Why doesn’t the mobile header use the colours set for Sitename and Tagline in Customize->Colors->Header?
We have customized our header to look like phpBB’s header, settting the Sitename and Tagline as #FFFFFF (white) and including using a gradient background via Additional CSS
.site-header { background-color: #12A3EB; background-image: -webkit-linear-gradient(top, #6ACEFF 0%, #0076B1 2px, #12A3EB 92px, #12A3EB 100%); background-image: linear-gradient(to bottom, #6ACEFF 0%,#0076B1 2px,#12A3EB 92px,#12A3EB 100%); background-repeat: repeat-x; }
I would expect at a minimum the mobile header would utilize the customized headers colours. Instead they seem to stay black on white background, regardless of the customized colours.
I’m also trying to figure out what CSS class I need to change to get the gradient above to work for the mobile header.
December 10, 2020 at 6:46 am #1574327DavidStaffCustomer SupportHi there,
the Mobile Header uses the Primary Navigation colors. Which lead to the tricky decision as to what the Mobile Site Title color should be. We choose to maintain primary nav colors over the site title color. In the majority of sites we see the Primary Nav Background colors were often different to the Site Header – which lead to the site title being indistinguishable eg. Black site title displayed in a Black Mobile Header background.
Can you share a link in regards to the Gradient ? And do you want some CSS to change the Mobile Site title.
December 10, 2020 at 7:12 am #1574492nomindthe Mobile Header uses the Primary Navigation colors. Which lead to the tricky decision as to what the Mobile Site Title color should be. We choose to maintain primary nav colors over the site title color.
Understood but my searching of the documentation didn’t find anything about it.
The site is https://www.financialwisdomforum.org/ and the header is a nod to our phpBB forum, https://www.financialwisdomforum.org/forum/index.php. I’ve got the desktop/tablet header matching up pretty well but try both on a smartphone (or via device emulation) and you can see what I’m trying to accomplish with the mobile header.
Absolutely open to some CSS to change the Mobile Site title and mobile header in general.
December 10, 2020 at 7:38 am #1574525DavidStaffCustomer SupportI’ll make a note of the missing docs …
Do you want to keep the Site Title with Grad Background above the menu bar ? Or keep it as is with the Site Title and Hamburger in line ?
December 10, 2020 at 7:44 am #1574537nomindDo you want to keep the Site Title with Grad Background above the menu bar ?
That is the intention, at least for now.
Ultimately the goal is consistent branding across multiple parts of the site that use WordPress/MediaWiki and phpBB, each of which brings different things to the party. Users shouldn’t care (or know) what software underlies the site. Of course that’s the theory, reality is much different but we try our best.
December 10, 2020 at 8:08 am #1574564DavidStaffCustomer SupportIn that case you would need to disable the Mobile Header in Customizer > Layout Header, this will keep the Desktop Site Header. We can then apply some CSS to remove the header widget and tag line:
@media(max-width: 768px) { .site-description, .site-header .header-widget { display: none; } }
December 10, 2020 at 10:31 am #1574702nomindThanks once again for the prompt support.
@media(max-width: 768px) { .site-description, .site-logo, .site-header .header-widget { display: none; } button.menu-toggle { text-align: left; } }
I tweaked it a bit further to turn off the logo and return the menu to left justified. Comments/corrections are most welcome if you can improve the coding.
It is currently being tested on our staging site and will deploy to production later today.
December 11, 2020 at 2:23 am #1575611DavidStaffCustomer SupportThat looks good to me!
-
AuthorPosts
- You must be logged in to reply to this topic.