• Resolved RGFSystems

    (@rgfsystems)


    I’ve customized the appearance of the theme considerably for the site I’m working on (https://theaperturegroup.co) but it’s causing a problem with menu items appearing on the mobile version. On desktop, the menu text is green on a white background, switching to white on green background when hovered with the mouse. Unfortunately on mobile, it’s just white on white so items are illegible unless currently active (i.e. the current page).

    Ideally, given the newer format of the mobile menu, I’d like to simply exclude the mobile menu from the styling I’m applying to the menu items for desktop, but I can’t seem to get that to work using @media or any other solution I’ve come across and I can’t locate the mobile styling tags if they exist.

    Can anyone tell me how to apply the css to desktop only, or alternately how to style the mobile separately so I can make the items reappear?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there RGFSystems,

    How are you doing today?

    I’ve checked your site and you should be able to fix this with some custom CSS. Please try adding the following CSS code in the style.css file of your child theme or if your theme doesn’t have custom CSS tab add it in your site using the following plugin:

    https://www.ads-software.com/plugins/simple-custom-css

    @media only screen and (max-width: 960px) {
    .main-navigation li a {
        color: #01b6ad;
    }
    }

    If the code doesn’t work please keep it added and let me know so I can take a look. This should make the navigation work the same way as your desktop navigation.

    Best regards,
    Bojan

    Thread Starter RGFSystems

    (@rgfsystems)

    Thank you! That did it. I was hoping there might be a simpler .mobile tag or something of the sort so that it would inherently follow the responsive design, but that seems to do the trick. Appreciate the help.

    Glad I could help ??

    Have a great day!

    Cheers,
    Bojan – WPMU DEV

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Mobile Menu Item Styling’ is closed to new replies.