We thank you for purchasing our product. Hope our product will be of great help for you to succeed. We appreciate your decision to read the manual before request for our support.
Project | Mega Main Menu |
Created | 10 November 2013 at 12:00 GMT |
Author | MegaMain |
Author URI | megamain.com |
Support | support.megamain.com |
Follow the next steps to setup plugin:
If you followed all instructions correctly, the link "Mega Main Menu" should be added in the section "Appearance".
If in your WP there is not created "Menu Structure" yet or you want to create a new Menu Structure for using it with "Mega Main Menu Plugin" – follow the next steps:
If you already have the created "Menu Structure" - set the necessary Menu Structure for the definite location.
Example: Select "My Mega Menu" for "primary_menu" theme location.
Mega Main Menu and its settings will be displayed in selected locations only after the activation of this location. Check the location(s) where you want to display Mega Main Menu.
Example: If you want to use "Mega Main Menu Plugin" in "primary_menu" location - check this location
Follow the next steps for set up menu item:
Mega Main Menu and its settings will be displayed in selected locations only after the activation of this location. Check the location(s) where you want to display Mega Main Menu.
Here you can select the image-file for using it as a logo in the Menu and set its size. Select image to be used as logo in Main Mega Menu. It's recommended to use image with transparent background (.PNG) and sizes from 200 to 800 px. Then set height of the logo. You can set height of the logo in percentage to the height of the initial container (applicable values from 10 to 99 percent). Width of the logo is set up automatically to save proportions of the original logo image.
You can find instructions how to add selected logo to the definite menu in "Layout Options: location ".
Firstly, you should decide for which menu location layout should be set.
In "Layout Options: Location " you can:
Firstly, you should decide for which menu location skin should be set.
In "Skin Options: location " you can change:
If you want to use gradient follow the next steps:
If you want to use flat color - set the same color value for the first and second parameters.
If you want to set the background image for menu initial container - use the following option.
You can choose and tune the background image for the primary container.
Notice: the background image replaces the background gradient and only flat color stays for the background.
The process of setting up the gradient or color for this element is the same as for "Background Gradient (Color) of the Primary Container".
The process of setting up the gradient or color for this element is the same as for "Background Gradient (Color) of the Primary Container".
The process of setting up the gradient or color for this element is the same as for "Background Gradient (Color) of the Primary Container".
The process of setting up the gradient or color for this element is the same as for "Background Gradient (Color) of the Primary Container".
Select the fonts that must be included on the site. Remember that a lot of fonts affect on the speed of load page. Always remove unnecessary fonts.
Here you can add and edit highlighting styles. After that you can select these styles for menu item in "Menus -> Your Menu Item -> Style of This Item" option.
You can add custom raster icons. After saving these settings, icons will become available in a modal window of icons selection. Recommended size 64x64 pixels.
This field is needed in the case when your template has a particular menu location and it needs adjustment. You can place here any necessary custom CSS properties.
If this option is enabled, then the menu will be transformed, if the user uses the handheld device.
This option is recommended to use only if styles of the installed theme interfere with the proper display of Mega Main Menu. If this option is checked - all CSS properties for this plugin will have "!important" priority.
If this option is checked - all menus will be replaced by the mega menu. This will be useful for templates in which are not defined locations of the menu.
Toggle the item of menu which you want to set.
We will leave out the explanation associated with standard WordPress settings of the menu item as they are very simple and understandable. We will consider opportunities of the Mega Main Menu instead.
To select the icon of the menu item follow the next steps:
Notice: the plugin includes a set of more than 1600 vector icons, so loading a modal window can take some of your time and patience.
Use this option if you want to display the menu item without a text. For example, link to the home page can be displayed without a text, and only the "Home" icon can be left.
Use this option if you want to set up the menu item without an active hyperlink. For example: it can be the title for the column in multicolumn dropdown menu.
Notice: these settings can be adjusted only for the first level items of the menu, and the style of displaying all children dropdown elements will depend on these settings. All examples here - http://menu.megamain.com/wp-content/plugins/demo_dashboard_2.html.
Just choose the side to which dropdown elements will unfold. For example: if you set "Drop To Right Side" for this option then dropdown will start at the left side of the initial element and go beyond it to the right.
This option influences the number of elements in one line for "Grid Dropdowns", the number of columns in the "Multicolumn Dropdown" and "Widgets Dropdown".
If you check this option the dropdown menu will be stretched to the full width of the primary container.
Use this area to select and set parameters of the background image for the dropdown item.
Follow the next steps to update (reinstall) plugin, all these steps are important for the correct working of the plugin:
Cause of this problem is small value of the "max_input_vars" option in the configuration of your server (host). You should increase value of the "max_input_vars". You need to set larger value. You can check current value of "max_input_vars" on your site on Mega Main Menu configuration page. Go to "Mega Main Menu -> Specific Options -> max_input_vars". This is real value of "max_input_vars" option in the configuration of your server. You can try to increase it in one of ways that are described in Documentation.
php_value max_input_vars 9000 php_value suhosin.post.max_vars 9000 php_value suhosin.request.max_vars 9000
; max_input_vars = 1000Then change it to following:
max_input_vars = 9000
"Sticky" feature does not work on mobile devices, because if you open the menu, you can not click on the last item, it will always be outside the screen.
If you understand that use sticky menu on mobile devices is bad practice, but you still want it - use this code in "Custom CSS" field.
Mega Main Menu for WordPress is a plugin that allows you to create beautiful and functional menu for your WordPress site. Mega Main Menu completely compatible with all WPML plugins.
In order to make mega menu which will display menu items that translated for each language you will need two installed and activated plugins: Mega Main Menu and WPML.
In this section we will concentrate on configuration of Mega Main Menu.
You should keep in mind that Mega Main Menu have two primary arrays of options:
Each translation of your site will use the same configuration from "Mega Main Menu plugin configuration page".
Probably you will want to get Language Switcher in menu.
You can get this feature in one of two ways:
Each translation of your site will require manual configuration of each menu item and menu structure as a whole.
Add this code in the "Specific Options -> Custom CSS" field, to get static search box instead animated:
Add this code in the "Specific Options -> Custom CSS" field.
Add this code in the "Mega Main Menu -> Specific Options -> Custom CSS" area.
Add this code in the "Mega Main Menu -> Specific Options -> Custom CSS" area.
Add this code in the "Mega Main Menu -> Specific Options -> Custom CSS" area.
Add this code in the "Mega Main Menu -> Specific Options -> Custom CSS" area.
Add this code in the "Mega Main Menu -> Specific Options -> Custom CSS" area.
add_filter( 'mmm_set_configuration', 'my_function_to_set_mmm_configuration' ); function my_function_to_set_mmm_configuration ( $default_configuration ) { // Get configuration of the plugin that is stored in the DataBase. $saved_configuration = get_option( 'mega_main_menu_options', array() ); if ( ( $saved_configuration === false ) || empty( $saved_configuration ) ) { // If you do not have a saved configuration in the database - do your code. $theme_custom_configuration = $default_configuration; $menu_location_name = 'primary-menu'; // name of menu location of your theme. // FEW EXAMPLES // Format of the checkbox option $theme_custom_configuration[ 'mega_menu_locations' ] = array( $menu_location_name ); $theme_custom_configuration[ 'responsive_styles' ] = array( 'true' ); $theme_custom_configuration[ $menu_location_name . '_sticky_offset' ] = array( 1 ); $theme_custom_configuration[ $menu_location_name . '_first_level_item_height_sticky' ] = array( 80 ); $theme_custom_configuration[ $menu_location_name . '_mobile_label' ] = array( 'MENU' ); $theme_custom_configuration[ $menu_location_name . '_first_level_separator' ] = array( 'none' ); // Format of the input_text, textarea, radio option $theme_custom_configuration[ 'custom_css' ] = '.theme_custom_class .mega_main_menu { margin: 10px; }'; $theme_custom_configuration[ 'logo_src' ] = 'http://menu.megamain.com/wp-content/plugins/mega_main_menu/src/img/megamain-logo-120x120.png'; // Format of the group of the inputs (menu_bg_gradient) $theme_custom_configuration[ $menu_location_name . '_menu_bg_gradient' ] = array( 'color1' => '#FFF', 'color2' => '#FFF', 'start' => '0', 'end' => '100', 'orientation' => 'top' ); $theme_custom_configuration[ $menu_location_name . '_menu_first_level_link_font' ] = array( 'font_family' => 'Inherit', 'font_size' => '13', 'font_weight' => '400' ); $theme_custom_configuration[ $menu_location_name . '_menu_first_level_link_color' ] = '#666666'; $theme_custom_configuration[ $menu_location_name . '_menu_first_level_icon_font' ] = array( 'font_size' => '13'); $theme_custom_configuration[ $menu_location_name . '_menu_first_level_link_bg' ] = array( 'color1' => '#FFF', 'color2' => '#FFF', 'start' => '0', 'end' => '100', 'orientation' => 'top' ); $theme_custom_configuration[ $menu_location_name . '_menu_first_level_link_color_hover' ] = '#bfd80f'; $theme_custom_configuration[ $menu_location_name . '_menu_first_level_link_bg_hover' ] = array( 'color1' => '#bfd80f', 'color2' => '#FFF', 'start' => '2', 'end' => '0', 'orientation' => 'top' ); $theme_custom_configuration[ $menu_location_name . '_menu_search_bg' ] = array( '#bfd80f' ); $theme_custom_configuration[ $menu_location_name . '_menu_search_color' ] = '#f8f8f8'; $theme_custom_configuration[ $menu_location_name . '_menu_dropdown_wrapper_gradient' ] = array( 'color1' => '#ffffff', 'color2' => '#ffffff', 'start' => '0', 'end' => '100', 'orientation' => 'top' ); $theme_custom_configuration[ $menu_location_name . '_menu_dropdown_link_font' ] = array( 'font_family' => 'Inherit', 'font_size' => '13', 'font_weight' => '300' ); $theme_custom_configuration[ $menu_location_name . '_menu_dropdown_link_color' ] = '#666666'; $theme_custom_configuration[ $menu_location_name . '_menu_dropdown_icon_font' ] = array( 'font_size' => '13'); $theme_custom_configuration[ $menu_location_name . '_menu_dropdown_link_bg' ] = array( 'color1' => 'rgba(255,255,255,0)', 'color2' => 'rgba(255,255,255,0)', 'start' => '0', 'end' => '100', 'orientation' => 'top' ); $theme_custom_configuration[ $menu_location_name . '_menu_dropdown_plain_text_color' ] = '#666666'; /* // You can print $default_configuration to see full list of options (only in dashboard) print_r( $default_configuration ); */ add_option( 'mega_main_menu_options', $theme_custom_configuration ); } else { // If you have configuration stored in the DataBase - do nothing. return false; } }
Result in the "DataBase"
wp_options -> option_name = mega_main_menu_options
add_filter( 'mmm_skin_extend', 'my_function_to_extend_css' );
function my_function_to_extend_css ( ) {
$my_css_rules = '.theme_custom_class .mega_main_menu { margin: 10px; }';
return $my_css_rules;
}
Result (at the end of the file: /plugins/mega_main_menu/src/css/cache.skin.css)
...
...
...
.theme_custom_class .mega_main_menu { margin: 10px; }
add_filter( 'mmm_container_class', 'my_function_to_add_classes_in_container' );
function my_function_to_add_classes_in_container ( $default_classes ) {
/*
// You can print $default_classes to see full list of CSS classes of the initial container
print_r( $default_classes );
*/
// Example
$my_css_classes = '';
$my_some_variable = 1;
if ( $my_some_variable == 1 ) {
$my_css_classes .= 'my_extra_class';
}
return $my_css_classes;
}
Result
<div id="mega_main_menu" class="primary primary_style-flat ... my_extra_class">
...
...
...
</div>
If you need support, if you have a question or suggestion - leave a message on our support page Support.MegaMain.com.