Tagged: Hamburger-Menu, mobile
-
AuthorPosts
-
September 16, 2020 at 1:50 pm #1246330
Hi everyone,
On the mobile version of my site, the hamburger menu icon is white, which is not a problem for most of the site, but it is a problem on the privacy policy page and the imprint page, and this is because the top of those pages are white, and so you can’t see the hamburger menu icon (because it’s white on white).
My question, how do I change the hamburger menu icon colour so that it’s black beforehand, and how do I do this for ONLY the privacy policy page and the imprint page?
I added in this custom CSS (see below) to the top of my quick CSS section, and as you can see I tried to reflect the page ID’s for those two specific pages in the code. But I’m not very experienced with coding, so maybe I got something wrong? Maybe I put some pieces of code in the wrong order?
I’m also not sure if I used the correct page ID’s?
/*BEGIN:This is the code for changing colour of hamburger menu to black before on privacy policy and imprint pages*/
@media only screen and (max-width:767px) {
.responsive .page-id-3#top .page-id-693#top .av-hamburger.is-active .av-hamburger-inner,
.responsive .page-id-3#top .page-id-693#top .av-hamburger.is-active .av-hamburger-inner:before {
background-color: black !important;
},
.responsive .page-id-3#top .page-id-693#top .av-hamburger.is-active .av-hamburger-inner:after
}I’ve added my login details below, so that you can check on whether I have the correct page ID’s.
Thanks!
Chris
September 16, 2020 at 1:53 pm #1246332Also to note:
I adapted this custom CSS from a previous solution I used for another site where I needed to change the colour of the hamburger menu icon for AFTER the fly-out menu comes out (NOT before). So maybe I also made a mistake in the code when adapting it for being beforehand.September 17, 2020 at 7:45 am #1246449Hi Chris,
Please try the following in Quick CSS under Enfold->General Styling:
.page-id-3 .av-hamburger-inner, .page-id-3 .av-hamburger-inner:before, .page-id-3 .av-hamburger-inner:after, .page-id-693 .av-hamburger-inner, .page-id-693 .av-hamburger-inner:before, .page-id-693 .av-hamburger-inner:after { background-color: #000; }
Best regards,
RikardSeptember 21, 2020 at 9:51 pm #1247483That worked perfectly!
Thanks Rikard, you can close this thread.
ChrisSeptember 22, 2020 at 9:56 am #1247557 -
AuthorPosts
- The topic ‘Change hamburger menu colour before fly-out on two specific pages’ is closed to new replies.