Nav bar colour on mobile devices

Permalink Browser Info Environment
Hello,

Could you please provide sample code to place in custom.dev.less to change the colour of the nav bar on mobile devices? (currently is grey and we would like it to be transparent or #1e1a1d)

Kindly,

Athan

Type: Pre-Sale
Status: Resolved
AthanD
View Replies:
shahroq replied on at Permalink Reply
shahroq
Hi,
Have you tried enabling the dark mode for the header in
Pixel Options> Header> Header> Dark & Dark Sticky
And if you still need a specific color, placing this piece in the 'custom.dev.less' should do the job:
@media only screen and (max-width: 991px) {
nav#primary-menu {
    background-color: #1e1a1d;
}
}
AthanD replied on at Permalink Reply
AthanD
Thank you for your reply.

I have enabled all the dark modes with no result. I have also placed the code you provided into custom.dev.less with no result either. If you open up our current live site on a mobile device (www.samsonandbulluss.com) you will see the constuction page with a dark grey blank nav bar at the top. (when using the mobile previews in C5, the ipad/tablet preview works the same as the desktop. All other device views still have a grey coloured nav bar instead of the colour we would like)

Kindly,
Athan
shahroq replied on at Permalink Reply
shahroq
It seems you intend to remove the 'coming soon' page header. In this case, just add this to your custom.dev.less file:
.page-template-coming-soon header {
   display: none;
}
AthanD replied on at Permalink Reply
AthanD
Hello,

It is not only on the coming soon page, but site wide. On all pages that have a dark header the colour is grey only on mobile devices and not desktop or tablet. The grey header doesn't look good against a black/coloured background on mobile devices. Is there a reason why the code you provided didn't affect the header on mobile devices?

Kindly,
Athan
shahroq replied on at Permalink Reply
shahroq
What about this one:
@media (max-width: 991px) {
#header {
    background-color: #1e1a1d!important;
    border-bottom: 0px!important;
}
}
AthanD replied on at Permalink Reply
AthanD
That did it! Thank you.

concrete5 Environment Information

Nil

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.