This topic has 12 replies, 2 voices, and was last updated 7 years, 10 months ago ago by Rose Tyler
Hi I haven’t been able to find any prior discussion on this.
I have recently added sub-menu items to my header menu, however, now the menu items with sub-menus have an altered vertical alignment, with the base of the text starting almost half the way up the other menu items. I would like all of the menu text to have a consistent vertical alignment, I cannot find any relevant setting in the theme options. Can you please advise how this can be done?
Hello,
Try to add this code in Custom CSS:
.menu .nav-sublist-dropdown {
transform: translateX(-50%);
left: 50%;
}
Regards,
Rose Tyler.
Hi Rose,
I have inserted this code into the custom css section and enabled the custom css, but there has been no change.
Regards,
Blair
Hello,
As I see, the previous code works fine http://prntscr.com/dwn2tx , clear browser cache and check it after that. If this is not what you want to change then provide me screenshot for better understanding.
Regards,
Rose Tyler.
Hi Rose, thank you for the screen shot. I am not referring to the pop up sub-menus but the main menu items, “Home” “Shop” “My Account” etc. You will see that “Home” and “Newsletter” are aligned differently to the centre three items which have the submenu dropdown arrow at the bottom right of each. I would like all of the text menu items to line up.
Hello,
Please, use this code:
.menu > li > a {
line-height: 1.5;
}
Regards,
Rose Tyler.
Hi Rose, unfortunately that has made no changes. I cleared cache and reloaded etc.
The issue seems to be related to specifying a text size for the Menu text. The default is too small for my layout, but it seems to line up properly.
Hello,
Could you please provide wp-admin access in Private Content so we could check it?
Regards,
Rose Tyler.
Hi Rose, please see your login details below.
Hello,
I’ve re-added previous code in Custom css. Clear browser cache and check menu.
Regards,
Rose Tyler.
Hi Rose, thank you very much. Looks much better.
Regards,
Blair
Hello,
You’re welcome!
Regards,
Rose Tyler.
The issue related to '‘Main Menu Text Alignment in Header’' has been successfully resolved, and the topic is now closed for further responses