Archived topic
Different submenu width in mobile and desktop
3 replies · Started by Ree on January 9, 2023
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?
Hi Ree,
You can use custom CSS.
For reference, can you provide the link to the site in question? We'll check what CSS is needed.
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
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;
}
}