Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1084746

    Hi at Kriesi,
    I am trying to make the meü items/links of the mega menu get more narrow together.
    – How can I reduce the left/right padding? I want all 8 items in one row.
    – How can I reduce the top padding?

    I have searched the forum and tried some code but nothing worked.

    Thanks in advance.

    Best Regards

    #1085309

    Hi Sigmund,

    Thanks for giving us admin access.
    Please edit this file: wp-content > themes > enfold > includes > helper-responsive-megamenu.php (line 192):

    if(!isset($args->max_columns)) $args->max_columns = 6;

    replace 6 with 8. Hope this helps.

    Best regards,
    Nikko

    #1085430

    Hi Nikko,
    thanks, magic, that works!
    Can you refer to my second question too? How do I edit the vertical/top/bottom padding of the items?

    Best Regards

    #1085437

    Hello Nikko,
    and can you give me advice/link how to integrate the code in my child theme folder? I have put the helper-responsive-megamenu.php file in enfold-child/includes/ but this did not work.

    Best Regards

    #1085453

    Hi Sigmund,

    Try to copy only this part of the code (line 14-348) then paste it in your child theme’s functions.php:

    class avia_responsive_mega_menu extends Walker {
      
    }

    then replace this code:

    if(!isset($args->max_columns)) $args->max_columns = 6;

    to:

    if(!isset($args->max_columns)) $args->max_columns = 8;

    Best regards,
    Nikko

    #1085479

    Great, that works. Thanks!
    Can you have on the top/bottom padding too? How do I edit the vertical/top/bottom padding of the items?

    Best Regards

    #1085502

    Hi Sigmund,

    Try adding this css code in Quick CSS, just adjust the 20px value, just reduce it’s value:

    #top #header #avia-menu ul.sub-menu {
        padding: 20px 30px;
    }
    
    #top #header #avia-menu ul.sub-menu.avia_mega_hr {
        padding-top: 0;
    }

    Best regards,
    Nikko

    #1085504

    Hi Nikko,
    that worked! Thanks again.

    Right now the Mega Dropdown has an width of about 600 px. How can I make it full width or adjust the value in pixels?

    Best Regards

    #1085612

    Hi Nikko,
    I have found out by myself:

    .avia_mega_div {
    width: 1310px !important;
    }

    does the trick for my page width.

    Best Regards

    #1085644

    Hi,

    I’m glad your issues were addressed. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Mega Menu spacing between links’ is closed to new replies.