Site logo

[Support request] Secondary navigation submenu

Home Forums Support [Support request] Secondary navigation submenu

Home Forums Support Secondary navigation submenu

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #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!

    #581474
    David
    Staff
    Customer Support

    Hi 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?

    #581487
    biblioteka

    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)

    #581498
    David
    Staff
    Customer Support

    Hi Zaneta, this is what i can see, the two elements are Elementor widgets:

    eduamu

    I can’t see a sidebar menu there?

    #581509
    biblioteka
    #581518
    David
    Staff
    Customer Support

    Hi 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.

    #581534
    biblioteka

    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?

    #581535
    David
    Staff
    Customer Support

    Hi 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.

    #581574
    biblioteka

    I think it’s will be okay. There is some possibility of expanding the second menu vertically?

    #581584
    David
    Staff
    Customer Support

    Hi 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;
    }
    #581624
    biblioteka

    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.

    #581811
    David
    Staff
    Customer Support

    Hi Zaneta, did you try the code above? I currently see a code that only applies to the current menu item.

    #581849
    biblioteka

    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 🙂

    #581900
    David
    Staff
    Customer Support

    Hi Paul, i have updated the code above so the menus stay open

    #582382
    biblioteka

    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.

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.