Tagged: theme
- This topic has 6 replies, 2 voices, and was last updated 3 years, 1 month ago by Skandha.
-
AuthorPosts
-
October 8, 2020 at 3:54 am #261772EdwinParticipant
Hello, regarding my website goldenbuddha.net I want to adjust the width of the sub-menus that drop from the main navigation menu. They are much too wide on desk top. Mobile is fine. Can you provide the css code? Also, please be careful that it does not disturb the padding and create a white space below the menu and above the header image. Thank you – Edwin
October 8, 2020 at 4:01 am #261773EdwinParticipantI want to adjust it in the primary menu also, thank you. It is the same issue, the sub menus are much too wide.
October 8, 2020 at 5:48 am #261792SkandhaParticipant@mmhgloba: Hello there,
Go to => Appearance => Customize => Additional CSS and add the following CSS Code./* To change width of sub menu of secondary menu */ #secondary-menu ul.menu ul, #footer-menu ul.menu ul, #secondary-menu ul.menu ul a, #footer-menu ul.menu ul a { width: 100px; } /* To change width of sub menu of primary menu */ #header-right .widget ul.menu ul { width: 175px; }
You can change the width according to your choice.
Let me know if this works out!
Kind Regards,
SkandhaOctober 8, 2020 at 4:54 pm #261798EdwinParticipantHi Skandha, thanks for the code, that worked great. But there is one more issue with the primary menu. The sub-menu hover creates a box and does not fill to the edge like with the secondary menu. Also, there is is a gap at the bottom. Can you assist? I would like the sub-menu to display in hover similar to the secondary menu. Thanks – Edwin
October 8, 2020 at 11:00 pm #261878SkandhaParticipant@mmhgloba: Hello there,
Go to => Appearance => Customize => Additional CSS and add the following CSS Code.#header-right .widget ul.menu ul { padding: 0; }
Let me know if this works out!
Kind Regards,
SkandhaOctober 9, 2020 at 9:44 am #261937EdwinParticipantThat worked great, thanks for the code. One more slight issue. In the secondary menu drop down on desk top, when clicked the window turns white. Can that be adjusted in css? This does not happen in the primary sub-menu. Thanks again.
October 11, 2020 at 1:42 am #262091 -
AuthorPosts
- The topic ‘Sub menu width’ is closed to new replies.