• Resolved mnatseah624

    (@mnatseah624)


    Hello Storefront users,
    I’m trying to get a piece of code to change the text color and background color of my drop-down menu. I’ve tried a dozen or so code snippets that I found online. But none worked, so I’m thinking the code may need to be tailored to Storefront.
    Adding to additional CSS is easiest. But I could also add it to the Child theme.
    Many thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, here is what you’re looking for

    .primary-navigation li .sub-menu {
      background-color: red !important;
    }
    
    .primary-navigation li .sub-menu a {
      color: black;
    }
    Thread Starter mnatseah624

    (@mnatseah624)

    Thanks very much @. The second part works great. The text is nice and clear. But I’m afraid the first part didn’t work at all. The background is still grey. But at least it’s nice and clear. And idea why?
    Btw, how would I get the drop-down text to change color on mouse hover?

    Thread Starter mnatseah624

    (@mnatseah624)

    Hello again @jarretc It was my mistake. I copied the first part of the code without the full stop. When I copied it right, it worked great. Thanks very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘drop down menu colors’ is closed to new replies.