Home › Forums › Support › Sub-menu opens down in sidebar This topic has 11 replies, 3 voices, and was last updated 5 years, 9 months ago by David. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts July 5, 2018 at 2:40 am #615947 Juan Carlos Hi! Im trying to make a submenu thats opens down in my sidebar. Im trying with this code: .sidebar .main-navigation .main-nav .current-menu-item .sub-menu, .sidebar .main-navigation .main-nav .current-menu-ancestor .sub-menu { opacity: 1; left: auto; position: relative; width: 100%; height: auto; } The menu its ok, but when I load another page, the menu returns to enfold to the right. How can I fix it? July 5, 2018 at 9:34 am #616319 LeoStaff Customer Support Hi there, Not quite sure what you mean? Which page is working correctly? That CSS should target the entire site. Let me know π July 5, 2018 at 9:49 am #616342 Juan Carlos Hi Leo. Thanks for the response. If you go to http://www.hairconceptprofessional.com/categoria-producto/acabados/, the menu works ok. But, if you go to another page, for example: http://www.hairconceptprofessional.com/empresa/, the menu opens to the right… July 5, 2018 at 12:34 pm #616519 LeoStaff Customer Support How are you adding the CSS? Are you using any caching plugins? July 6, 2018 at 12:08 am #616890 Juan Carlos Im adding the CSS in Appearance > Customize. I dont have any caching plugin… July 6, 2018 at 4:04 am #617049 DavidStaff Customer Support Hi Juan, it’s working on the shop pages as they are menu ancestors and that code overwrites the normal sub menu CSS. Try this code instead: .sidebar .main-navigation ul ul, .sidebar .main-navigation .main-nav .current-menu-ancestor .sub-menu { opacity: 1; left: auto !important; position: relative; width: 100% !important; height: auto; } July 6, 2018 at 4:12 am #617055 Juan Carlos Hi David. Now the submenu appears fine but I cant click on its elements. Also, when you put the mouse over the word “Products”, the menu opens to the right… July 6, 2018 at 4:24 am #617066 DavidStaff Customer Support I edited the code above, can you try this. July 6, 2018 at 4:37 am #617083 Juan Carlos Now its ok, but its possible that the submenu only appears when you click in the upper page? July 6, 2018 at 5:17 am #617131 DavidStaff Customer Support Sorry, lets try this instead: #left-sidebar .main-navigation ul ul { position: relative; top: auto; left: 0; width: 100%; opacity: 1; } July 6, 2018 at 5:29 am #617148 Juan Carlos Wow! Now its ok! A lot of thanks! π July 6, 2018 at 5:30 am #617151 DavidStaff Customer Support Phew…. glad to hear its’ working – sometimes better to start from scratch with this type of code π Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In