Description
Easily create accessible mega/dropdown menu with images/icons/title/posts using standard WordPress menu editing page (supports keyboard interaction ).
Add menu item icons and images from media library, icon-font or featured image of the post(automatically).
Create menu items with none standart content, like videos, post content or anything that can be put in a post.
Note: This plugin requires a change of the header.php file of your theme (or another file, if the menu is defined somewhere else).
It also requires css editing in order to style it. It will technically work out of the box but you nust style it.
See a demo here:
See the menu editing guide here:
Features
- Save each item without reloading the page.
- Each menu item is conrolled separately
- Show images in menu items. Select between font icon, image from media library, Featured image of the post or none.
- In addition to the image you can show in the menu: Title Attribute, Description and Subtitle.
- Menu items can load full post (thus, enables you to inject html, video, image etc. or even shortcode) or post excerpt directly into it.
- Remove title (and link) from menu item (if you want the menu item with post not to show menu title).
- Load web-font directly from the menu settings.
- Let you define a unique class to each drop down panel. This way you can control each panel layout separately.
- Uses class prefix to avoid css conflicts.
all the editing of the menu is done by the familiar menu editor of wordpress.
Screenshots
Installation
Note: You must define a valid menu in your WP before activating the plugin in order for it to work correctly.
If you see an error regarding this plugin, deactivate it and set a menu first.
Installation can be done either by searching for “ATR advanced menu” via the “Plugins > Add New” screen in your WordPress dashboard, or by using the following steps:
- Download the plugin via www.remarpro.com
- Upload the zip file through the ‘Plugins > Add New > Upload’ screen in your WordPress dashboard
- Activate the plugin through the ‘Plugins’ menu in WordPress
After installation:
Important! You must edit the header.php file of your theme in order to use the menu.
Edit your theme header.php file and add ‘walker’ => new atr_advanced_menu_walker() to wp_nav_menu. :
add to this:
<pre><?php wp_nav_menu( array(
'theme_location' => 'primary',
'menu_class' => 'nav-menu',
'menu_id' => 'primary-menu'
) ); ?></pre>
See the last property:
<pre><?php
wp_nav_menu( array(
'theme_location' => 'primary',
'menu_class' => 'nav-menu',
'menu_id' => 'primary-menu',
'walker' => new atr_advanced_menu_walker()
) );
?></pre>
Note 1: If you use a theme that uses indirect call to the menu definition (mostly in bought themes or themes that use a framework) you’ll have to find the correct way to apply the plugin in that theme.
Note 2: Examine the class of the menu wrapper div in your theme (like ‘menu_class’ => ‘nav-menu’ in above example ). Usually this theme class has properties that override the plugin’s css definitions and can mess up your menu.
If that happens, simply specify the css rule like so:
Find the rule that breaks the menu, for example:
.main-navigation ul ul {}
Duplicate it and add “.megamenu” (the wrapper for the plugin’s generated menu ) as an explicit selector.
.main-navigation .megamenu ul ul {}
You’ll have also to set the other classes for the menu to display well.
Settings
Right after activating the plugin, go to Appearance – > ATR advanced menu Settings
Set your settings and save.
FAQ
-
It is a replacement for the default menu provided by WordPress. It uses a feature of WordPress, called Walker which let us customize the way the menu behaves.
-
Why do I have to go to header.php I am not a programmer
-
The only way to replace the default menu is from the header file.
If you do not know how to do it please ask some one who knows. -
Is it accessible?
-
Yes. You can navigate between the items by your keyboard.
Contributors & Developers
“ATR advanced menu” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “ATR advanced menu” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.4
- 2020-8-12
- Tested for WP 5.5
- Tested for Woocommerce 4.3.2
- changed $(‘.atr-menu-save’).live(‘click’, function to $(‘.menu-item-settings’).on(‘click’, ‘.atr-menu-save’, function
in admin\js\atr-am-admin.js
1.0.3
- 2019-6-15
- Tested for WP 5.2.1
- Tested for Woocommerce 3.6.4
- Added condition to avoid get_woocommerce_term_meta throws a deprecated notice. Since WooCommerce no longer supports WP versions lower than 4.4, the wrappers are no longer necessary and native WordPress functions can be used instead. https://github.com/woocommerce/woocommerce/wiki/3.6.x-notes-FAQ
1.0.2
- 2016-9-09
- Checked for WP 4.6.1
- Made the settings more clear
- Change settings behavior.
- megamenu.css now loads only the mandatory classes
1.0.1
- 2016-9-08
- Fixed undefined chooseimage var
1.0
- 2016-9-05
- Initial release