Note: This plugin requires PHP 5
Warning: This plugin requires knowledge of CSS to use adequately in widgets
Features at a glance:
- Widgetised to make it really easy to add multiple dropdowns anywhere on the page you have sidebars
- Ability to create the menu wherever you want with PHP Classes
- Leverages the new WordPress 2.8 widget settings to allow quick and easy multiple widget instances
- Multi-level dropdown (CSS included)
- Multi-level left/right flyouts (CSS included)
- Works with other CSS (within reason)
If you want me to modify the CSS for you simply contact me and I will do it easily and quickly for you for a moderate sum.
You can look on Stu’s site for other drop-down code as I got the flyout left and right code from there. Don’t forget to donate if you’re using his styles.
Most of his CSS should work just fine with the menu. I’ve made it so that the plugin automatically finds menu.css in the plugin’s folder and loads it in your WordPress site so you can instantly see how it will look. If you want to create your own CSS simply create menu.css in your theme’s root directory and the plugin will load that automatically for you.
Please note that if you’re upgrading you will need to change your theme files to suit the new approach. See Installation for further information.
- It doesn’t work with IE x
(Un)fortunately the WordPress nav menu system doesn’t use the browser hacks Stu Nicholl used. There are many other CSS navigation menus out there these days, do a quick Google search, pop it into your own menu.css file, and target the correct class. It’s easy to drop over the top!
- I Need HELP!!!
That’s what I’m here for. I do WordPress sites for many people in a professional capacity and
can do the same for you. Check out www.zackdesign.biz
- I’m getting strange class errors
You need PHP 5 to run this
- Where’s the dynamic width gone?
I left dynamic menu width code in until a replacement CSS menu can be found… it should not break existing dynamic CSS, but you can no longer change the options in the WP Settings.
Contact me to suggest a good alternative, and if you need to change any of the options found in the
css_dropdownmenu_cssfunction use functions.php and this as a guide: https://codex.wordpress.org/Function_Reference/update_option
- Added licensing information and tested in WP 3.3.x
- Fixed the CSS appearing in WordPress admin
- Set the plugin up for WordPress 3, and removed all unnecessary code
- Added category ordering by description/name
- Reintroduction of deprecated function in an attempt to get people back on track.
- Minor fix – valid XHTML 1.0 Transitional (target=”” removed)
- Changed CSS slightly (current_page_item > current_page and deleted drop.gif)
- Added URL target for WP links
- Added drop class for parent menu links
- Fixed dodgy css classes for WP links
- Added current_page for post categories
- Fixed ‘division by zero’ warning which occurs when there are no links for the dynamic menu to use
- Found that IE6 didn’t play nice when excluding parent URLs, added href=”#” parent A tags to fix issue
- Added widget title
- Also created ability to do a menu drilldown style in the sidebar, visible here: http://www.brakes.no/v2/produkter/
- Gives users ability to override superfish.css with their own superfish.css in their current theme folder (this is for the JS sub plugin)
- Also added PHP enclosing tags to README
- Allows users to create static non-flyout left/right menus with drilldown functionality (only shows children of currently selected menu item)
- Found there was a problem with dynamic menu widths due to using the classes. Assumes that the last top oriented menu defined is the one to set dynamic CSS for. This will need to be addressed in later versions.
- Menu titles for QTranslate broken when using htmlspecialchars. Removed.
- Uses all the WordPress heirarchical elements – links, post categories, pages
- Attempts to make the installation process as simple as possible for non-savvy users (Auto CSS inclusion, allows user to define their own, user-friendly improvements)
- Includes sub-plugin – the superfish menu dropdown script
- Additional links in the plugin menu so that the user can quickly find the plugin setup area
- Updated README file to reflect new changes and all links to Zack Design are now for this plugin category
- Rewritten for PHP Classes
- Authenticated menus
- Ability to set further fine-grained controls from the code
- Added some extra code to try and make IE6 dynamic widths work properly
- Now allows you to rename the additional ‘Home’ button
- Added an extra ‘else’ to try and clear any unnecessary parent CSS
- Alphabetical sorting
- Top-level parents optionally have no URL
- HTML special chars for the title (noticed some XML errors)
- Multi-lang plugins supported with apply_filter on post title…
- Further classes. New link ones, a new parent class, and the return of the current_page class.
- Added classes back into the
- HTML elements. Sorry! Forgot to add them back in when changing over the code…
- Minor bugfixes
- list of IDs for which to not make an URL fixed up so that you can put in more than one
- found some bugs in menu children URL removal
- IE8 testing – Now works in IE8!!!
- Completely re-written recursive menu generator. You can have as many levels as you can write CSS for! 😀
- Can now add a home-page by ticking it in settings
- List of IDs for which to not make an URL
- Added a way to make wrapped pages auto-dynamically factored in
- Fixed some minor bugs
- Added a start parent
- Moved dynamic width to settings only. No real point in forcing it to be stuck in functions.php.
- Makes it so that if the width of top elements are wider than a certain amount the bottom level grows with it
- Proper dynamic width using CSS
- Added an admin option to set which class we use when generating dynamic width css, defaults to .menu
- Noticed some things weren’t working quite right (e.g. extra
tags were apearing when no children were present)
- Able to pass certain directives to tell the menu what things to output
- Added third level flyouts
- Fixed some bugs with the code. Sorry, I accidentally left some test code in!
Added admin page
Can now stop certain pages showing… at the moment just doesn’t fetch the pages (some parentless child pages
are fetched but now shown)
- First build