• Resolved chris_bramley

    (@chris_bramley)


    Hi

    Really like the menu but the width is full screen (not including border) only. Can you tell me the best way to match it only to the menu items dynamically, and centre it on the page?

    Also being able to adjust position easily would help.

    If you look at taboma.diskstation.me/wordpress you will see what I mean… it only needs to be in the middle, and really I would prefer it lower (Or at the top). I tried resetting the CSS in the theme but it made no difference.

    Thanks

    https://wordpress.org/plugins/megamenu/

Viewing 3 replies - 1 through 3 (of 3 total)
  • you can make your new menu in the template -> frontpage.php, page.php…

    <div id="menu2">
    <?php
     // my navigation menu2.
        wp_nav_menu( array(
    		'theme_location' => 'primary',
    	) );
    ?>
    </div>

    and position in style.css

    #menu2 {
    position: absolute;
    /*width: 900px; this should be deleted*/
    height: 25px;
    z-index: 1000;
    margin: 0px auto auto 200px;
    top: 60px;
    …etc
    }

    Plugin Author megamenu

    (@megamenu)

    Hi Chris,

    To adjust the menu width please see here:

    http://www.maxmegamenu.com/documentation/adjust-menu-width/

    The menu is in the position it’s in because there is quite a lot of padding on your <header> element, you’ll need to lower the amount of top padding, and increase the bottom padding on that element to move the menu upwards.

    Regards,
    Tom

    Thread Starter chris_bramley

    (@chris_bramley)

    Thanks! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Menu Width and Menu item positions’ is closed to new replies.