A Custom Menu widget that adds a custom url to the widget title and adds a custom css class. The default custom menu CSS class is
sub-menu and it is applied to the
<ul> tag. You will need to style the widget using your theme’s stylesheet.
Based on the core WordPress Custom Menu widget.
- Custom title URL
- Custom CSS class
Plugin’s Official Site
- How do I style a Better Menu Widget?
You can style a Better Menu Widget by adding the default menu class
sub-menuto your theme’s style sheet. If you’ve changed the menu class in the widget options, then you would use the new class name you created.
Working very well, thank you.
На вид меню такое же, как стандартное.
Added ability for multiple CSS classes. Thanks to Joe Buckle.
Change constructor style to PHP5.
Improve code comments.
Tested against WordPress 4.2.2.
Security enhancements. Allow only valid characters for html class.
Update plugin URL.
Reminder: always backup your site before you update any plugin.
Added developer credits.
Important Change! Read before you update.
The widget class was changed from “menu-widget” to “better-menu-widget” to avoid class name conflicts. This will cause any widgets you have to disappear so you’ll need to add them again. You may also need to update your style sheets.
Initial public release.