• Resolved Out the Box

    (@outtheboxthemes)


    We’re currently adding support for Max Mega Menu to our themes. We’re placing the mega menu inside a container div in order to keep the layout looking the same as the default theme navigation menu. To maximize support for the plugin we’d like to be able to style this container div to have the same background color as the menu background color of the menu theme that is being used. Is it possible to access the plugin’s menu background setting from within our themes?

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

    (@megamenu)

    Hi,

    Glad to hear you’re adding support ??

    There’s a “mmm_get_theme_for_location($location)” function you can call which will return an array of all of the theme settings for that location. You should be able to get what you need from there.

    Alternatively, if you distribute your theme with a built in Max Mega Menu theme (see here: https://www.megamenu.com/documentation/theme-developers/), you can add something like this to the custom styling area:

    header .my-theme-container {
        @include background($container_background_from, $container_background_to);
    }

    Regards,
    Tom

    Thread Starter Out the Box

    (@outtheboxthemes)

    Perfect! Thanks Tom!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Accessing Menu Theme settings from within a theme’ is closed to new replies.