[Resolved] Sub-Menu Columns?

Home Forums Support [Resolved] Sub-Menu Columns?

Home Forums Support Sub-Menu Columns?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1037942
    Antar

    Hello, All

    One of my clients has created an impossibly large sub-menu of different shop categories. When activated the drop down is longer than my desktop monitor! He refuses to change this set-up and is now arguing that I should be able to make customer browsing more easy.

    Screenshot: http://prntscr.com/pl15pu

    Is there any clever way I can break-up the sub-menu drop down into multiple columns?

    Thanks in advance,

    Antar

    #1038008
    David
    Staff
    Customer Support

    Hi there,

    can you add a CSS Class to the parent item of that sub menu:

    https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes

    example class name: two-column-menu

    then add this CSS:

    .main-navigation li.two-column-menu > ul {
        display: grid;
        grid-template-columns: 50% 50%;
        width: 350px;
    }
    #1038293
    Antar

    David –

    You beauty!

    Thanks,

    Antar

    #1038337
    David
    Staff
    Customer Support

    Awesome – glad to be of help

    #2134067
    Cali

    Hi David,Why I added your CSS code to the submenu (Menu Item :”applications” and “products”), but it still doesn’t show in 2 columns? website: https://dw-inductionheater.com

    #2134103
    Cali

    David,It can work well.I made a mistake.Good CSS code!

    #2134315
    David
    Staff
    Customer Support

    Glad to hear you got it working!

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