Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi kimathome,

    You can do this by adding a text widget. Inside the widget use the following shortcode:

    [maxmenu location=primary]

    Update the location parameter so it references an existing menu location in your theme. A menu must be tagged to the theme location and the theme location must have Mega Menu enabled on it for it to work.

    If you just see the shortcode output as text, add this to your themes functions.php file:

    add_filter('widget_text', 'do_shortcode');

    Regards,
    Tom

    Thread Starter klmathome

    (@klmathome)

    That worked very well. Thanks you.

    Unfortunately, I still had to figure out how to register a new menu in my theme because the theme only had one “menu location”. And I didn’t want the same menu in two locations.
    It would be nice if your plugin allowed users to an multiple menu locations for use around the site.

    Thanks for all your help. Now for styling!
    Kyle

    Plugin Author megamenu

    (@megamenu)

    Hi Kyle,

    Thanks for the suggestion. There is a plugin (Menu Swapper I think) that will let you create menu locations without having to change your themes functions.php file, but ultimately I will add a widget that just outputs a Mega Menu in a widget area – no theme location needed ??

    Regards,
    Tom.

    Type Historian

    (@type-historian)

    WP 4.1
    Suffusion 4.4.7 Child Theme
    Easy Digital Downloads 2.2.8

    I’m building a sub-domain eCommerce site with EDD. So far, it seems best to plan it around standard WP pages with short-codes displaying multiple purchase options, etc.:

    https://bazaar.typeheritage.com/xyz/one/
    https://bazaar.typeheritage.com/xyz/tuscans/

    I need a v-e-r-y complex mega-menu located in the main navigation sidebar that appears on every page. I nearly dismissed the MMM plug-in until this thread raised a glimmer of Hope!

    https://bazaar.typeheritage.com/plug-in-demos/mmm/

    I tried to adapt the solution that worked for Kyle, only it’s “‘way over my (code-clueless) head.”

    The Suffusion theme supports two specific menu locations: “Navigation Bar Above the Header” (in use) and “Navigation Bar Below the Header.” So if I understand correctly, I start by “pretending” that the MMM belongs below the header and then re-assign it to the sidebar with magic short-code in a text widget?

    Besides the two specific menu locations, it supports 10 mega-menu widget areas, so there must be a way to do it!

    https://aquoid.com/news/?s=mega-menu&searchsubmit=

    Please walk me through *exactly* what short-code to enter into the text widget and whatever else I must do to make it work.

    With High Hopes of Success, Anna

    P.S. Since I use a child theme in a sub-domain, I feel brave enough to edit the .php files.

    Plugin Author megamenu

    (@megamenu)

    Hi Anna,

    You’ll need to assign a menu to a menu location, that’s a given (you can’t tell WordPress just to output menu with the ID of “4”… you have to tell it to output a menu location, and its the location that defines the actual menu).

    The problem you’ll have with assigning a menu to “Navigation Bar Below the Header.” is the theme will start outputting the menu there… the shortcode won’t stop the theme from doing that. So you’ll need to edit your theme and tell it not to output the menu itself. But seeing as you’ll need to edit files anyway, it would be better to add a new menu location to your theme.

    Once you have a menu assigned to a location, you need to use the shortcode as so:

    [maxmenu location=MENU_LOCATION_ID]

    The other problem I think you’ll run into is that MMM doesn’t support horizontal menu’s yet, so it might not be suitable for putting in a sidebar.

    Regards,
    Tom

    Type Historian

    (@type-historian)

    Thanks so much for your trouble. I think what I need is more like an accordion plug-in.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘MegaMenu in Sidebar/Widget’ is closed to new replies.