• Resolved Chris

    (@christianmuellerdhv)


    Hi,

    as https://www.ads-software.com/support/topic/different-colors-for-individual-menu-items/#post-17185210 is only a part of my question, I open this topic.

    I like the minimalitic appraoch of TT3, but it should be possible to have different styles for the desktop-menu and the mobile-menu.

    My usecase:
    desktop: alle items in green, 1.+2. navigation-level
    Mobile: 1. level (not klickable, no link) in grey, 2. level in green

    The problem for the users:
    If they klick on desktop on the first level, they open the submenu, so the linkcolor green is OK.
    In the mobile-menu to klick the first level makes absolutly no sense, because there is no link behind und nothing to open. So I want another color only for the first level on mobiles, not our link-color.

    The problem for me:
    There is no way for configuration in the backend. In the block “navigation” setting the color for “submenu & overlay text” changes the whole mobile-menu including the first level. I failed to find a custom -css solution, because most of the classes seem to work for all menus.

    That’s why also the solution from Felipe failed, because it’s also effecting the desktop-menu, not only the mobile-menu, what also happened working with a custom class…..

    So any way to make different styles for the first navigation-level and the following levels inside a mobile-menu, without effecting the desktop styles?

    Regards

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Felipe Santos

    (@foosantos)

    Hi Chris,

    That’s why also the solution from Felipe failed, because it’s also effecting the desktop-menu, not only the mobile-menu, what also happened working with a custom class…..

    Have you tried to add something like that?

    @media (max-width: 768px) {
        .wp-block-navigation__submenu-container span {
            color: green;
        }
    }

    The @media (max-width: 768px) should limit it to apply it up to 768px width.

    Thread Starter Chris

    (@christianmuellerdhv)

    Felipe,

    that’s it, this is working fine!

    Thank’s a lot and

    best regards

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘menu styling desktop & mobiles’ is closed to new replies.