- This topic has 15 replies, 2 voices, and was last updated 4 years, 1 month ago by
David.
-
AuthorPosts
-
May 22, 2018 at 2:41 am #581471
biblioteka
Hey, Tom
I have question about secondary navigation. I would like to display on second pages only sub menu in secondary navigation. How to do it? I have in my dynamic CSS:
.secondary-navigation .current-menu-ancestor .sub-menu {
opacity:1;
left: auto;
right: auto ;
position: relative;
width: 100%;
clear: both ;
top: auto;
float: none;
visibility: visible;
pointer-events: auto;
height: auto;
display: block;
}but it’s display also main menu.
Thanks!
GP Premium 1.6.2May 22, 2018 at 2:48 am #581474David
StaffCustomer SupportHi Zantea,
i am having trouble picturing this.
You want to add a Secondary Menu and for it to not display the Parent menu items just the sub-menu items?Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 22, 2018 at 3:01 am #581487biblioteka
Hi,
please see this
http://lib-dev.amu.edu.pl/wp-admin/customize.php?return=%2Fwp-admin%2F
on the right i have secondary navigation but i want to display only sub-menu (bright blue)May 22, 2018 at 3:21 am #581498David
StaffCustomer SupportHi Zaneta, this is what i can see, the two elements are Elementor widgets:
I can’t see a sidebar menu there?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 22, 2018 at 3:30 am #581509biblioteka
May 22, 2018 at 3:46 am #581518David
StaffCustomer SupportHi Zaneta, to hide the parent menu items and just display the sub menu items would be very difficult. The best solution would be to create a new menu in wordpress that only contains the sub menu items.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 22, 2018 at 4:11 am #581534biblioteka
Thank you very much, I will try to do as you suggest
I have second question. How to hide only in mobile view in ma heading site logo and widget?
May 22, 2018 at 4:16 am #581535David
StaffCustomer SupportHi Zaneta, go the Customiser > Layout > Header and enable Mobile Header where you can assign a logo. This will disable the desktop header and the widget.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 22, 2018 at 5:21 am #581574biblioteka
I think it’s will be okay. There is some possibility of expanding the second menu vertically?
May 22, 2018 at 5:49 am #581584David
StaffCustomer SupportHi Zaneta, you can try adding this CSS:
.sidebar .secondary-navigation .main-nav .sub-menu { opacity: 1 !important; display: block !important; left: auto; right: auto !important; position: relative; width: 100% !important; clear: both !important; top: auto; float: none; height: auto; } .secondary-navigation .main-nav .menu-item .dropdown-menu-toggle { display: none; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 22, 2018 at 6:56 am #581624biblioteka
Last question :)? Is it possible to set the vertical expansion in this second navigation view, with expanded sub menu like in the link:
http://lib-dev.amu.edu.pl/historia-i-zbiory/I trying but still getting horizontal expansion.
May 22, 2018 at 8:29 am #581811David
StaffCustomer SupportHi Zaneta, did you try the code above? I currently see a code that only applies to the current menu item.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 22, 2018 at 9:05 am #581849biblioteka
Yes I tried it and it work fine, but now i don’t have expansion actually sub-menu like before.
See the same link:
http://lib-dev.amu.edu.pl/historia-i-zbiory/and for correct i’am Paul – Zaneta is a work colleague 🙂
May 22, 2018 at 9:48 am #581900David
StaffCustomer SupportHi Paul, i have updated the code above so the menus stay open
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 23, 2018 at 1:30 am #582382biblioteka
Hi David,
I checked this code and this is not correct for me.
But I found the right plugin for me about this second menu.
Thank you for your help and time. -
AuthorPosts
- You must be logged in to reply to this topic.