Site logo

Archived topic

Different submenu width in mobile and desktop

3 replies · Started by Ree on January 9, 2023

Viewing posts 1–4 of 4

I want a different width for submenu in mobile and desktop, however when I save it saved both. Any other ways to achieve this please?

https://prnt.sc/I1i-BT1CIA5y

in the mobile submenu it should be width of 120px
while in the desktop it should be 230px width

I see. With your current structure, can you try adding this through Appearance > Customize > Additional CSS?:

@media (min-width: 1025px) {
    div#primary-menu ul.sub-menu {
        width: 230px;
    }
}
This archived topic is closed to new replies.