-
AuthorPosts
-
December 8, 2017 at 9:05 pm #886610
Dear Sir,
I use this code to change the background color of a menu item on the main navigation bar (this works):
.sub-menu li#menu-item-5928 a {
background: #0094b2 !important;
}But what CSS would I use to change the background color on the same item within the mobile menu? As the CSS above doesn’t change the mobile item background color.
Thanks SO MUCH for any help :)
Best wishes,
Christopher SkeltonDecember 9, 2017 at 12:55 am #886697Hey kelsangchodor,
Please provide a link to the site in question so we can inspect this page.
Best regards,
Jordan ShannonDecember 9, 2017 at 1:19 am #886711Hi,
Sorry forgot to include:Thank you!
- This reply was modified 6 years, 11 months ago by kelsangchodor.
December 9, 2017 at 4:03 pm #886868December 9, 2017 at 4:12 pm #886877Hi Victoria,
To be clear what I would like.
I would like the background color of a single menu-item (both on desktop and mobile menu) to be #0094be
The css above works perfectly on desktop – non-responsive menu – it was given to me by one of your colleagues. I don’t want to change that – it works absolutely fine :)
However, this CSS *does not* change the same menu-item background on the mobile menu. I want this to be the same background color too : #0094be
I need to know what css to use to change the color of the background of a single menu item on mobile menu.
Thanks for your help,
Christopher Skelton.
- This reply was modified 6 years, 11 months ago by kelsangchodor.
December 9, 2017 at 4:24 pm #886890Hi Christopher,
The css I gave you above works with the mobile menu, please try it.
Best regards,
VictoriaDecember 9, 2017 at 4:36 pm #886893Hi Victora,
Sorry – i didn’t notice the subtle difference of a “#” to a “.”
I created two entries of CSS for each menu item – one for changing color on desktop and the one above you suggested to change background of mobile menu.
Does that sound correct?
Thanks for your time,
Best wishes,
Christopher Skelton.December 11, 2017 at 11:54 am #887303Hi Christopher,
Yes, that is correct. Does the code do what you need?
Best regards,
VictoriaDecember 11, 2017 at 12:36 pm #887342Yes, Its perfect.
Thanks for your time Victoria. Much appreciated.
Best wishes,
Christopher.
December 12, 2017 at 12:58 am #887626Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Change background color of menu item on MOBILE’ is closed to new replies.