- This topic has 11 replies, 2 voices, and was last updated 4 months ago by
Ying.
-
AuthorPosts
-
November 12, 2019 at 5:24 am #1060342
Luizik
Hello, developers!
I have a question about additional menu in sidebar active item. I want the menu no to collapse and stay open when i am on a child page.
If a client is on sub page
– i am on this page and the menu should look the same way – should be opened (now it closes when i move my mouse away)
November 12, 2019 at 6:21 am #1060386David
StaffCustomer SupportHi there,
try this CSS:
.sidebar .secondary-navigation .main-nav .current-menu-item .sub-menu, .sidebar .secondary-navigation .main-nav .current-menu-ancestor .sub-menu, .sidebar .secondary-navigation .main-nav .current-page-ancestor .sub-menu { opacity: 1; left: auto; right: auto !important; position: relative; width: 100%; clear: both !important; top: auto; float: none; visibility: visible; pointer-events: auto; height: auto; display: block; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 12, 2019 at 7:06 am #1060744Luizik
Thank you very much!
It works perfect!))
November 12, 2019 at 7:11 am #1060749David
StaffCustomer SupportGlad to be of help
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/July 7, 2022 at 9:58 am #2276371Jernej
Hey there,
I used the same code you David provided.
I would like to know if this always open sub menu can be fixed to the opened location?
So if anybody wants to click and hover to other item of this always open submenu, doesn’t open to the right like the submenu naturally does (selected open right in customizer).Check short video explaining what I mean:
https://share.getcloudapp.com/Z4uAA4vYthank you!
July 7, 2022 at 11:30 am #2276440Ying
StaffCustomer SupportTry this:
.dropdown-hover.left-sidebar .widget-area .secondary-navigation:not(.toggled) ul li:hover ul { position: relative; left: auto; }
If it doesn’t work, can you open a new topic and link us to your site where we can see the sidebar menu?
Let me know π
July 11, 2022 at 4:24 am #2279239Jernej
Hi Ying!
Thank you for help. It works exactly as I need π
July 11, 2022 at 9:37 am #2279676Ying
StaffCustomer SupportYou are welcome π
September 26, 2022 at 7:36 am #2354085Jernej
In reply to this topic I would like to know if despite all the above code added to CSS, there is an option that current submenu is visible on page load but “current” submenu collapse if somebody click on different menu element (which expand submenu of that other menu element). Just like it works with other menu elements that are not current.
Here is the video:
https://share.getcloudapp.com/xQux7wXYThank you for your help!
JernejSeptember 26, 2022 at 1:14 pm #2354516Ying
StaffCustomer SupportCan you link me to the site so I can have a look to see the possibilities?
September 27, 2022 at 2:23 am #2354965September 28, 2022 at 9:33 am #2356635Ying
StaffCustomer SupportTry this add CSS:
.widget-area .secondary-navigation li[class*="current-menu-"].sfHover > ul { display: none !important; }
-
AuthorPosts
- You must be logged in to reply to this topic.