Sticky Menu, a plugin for WordPress
July 6th, 2007 ericdes
I wrote this little plugin to easily create menus in WordPress.
Normal use of WordPress to create menus:
Because WordPress normally creates menus automatically, for example from a list of categories or pages, you have to exclude manually all items you don’t want in your menu, which can be a lengthy process if you have a lot of categories or pages.
Also, you can’t mix categories and pages in a same menu. You can’t put a link to a subdomain, which could be the case if you have a forum running outside WordPress for example.
What Sticky Menu improves:
Sticky Menu lets you define an unlimited number of menus, in which
you list the exact number of menu items you want to appear. Menu items can link to any pages, posts, etc., in your site or any URLs exterior to your site. You can define a class name for each menu item.
With Sticky Menu being activated, you go to the admin board and look for Sticky Menu in the ‘Manage’ section. There, you create as many menus and menu items as you’d like. In this example, I created a menu named ‘Main’ with 4 menu items: Home, Fun, About me, Contact me.
![]()
Then I edited the template files header.php, footer.php, sidebar.php to add these lines:
$menu = new stickymenu;
$menu->display_menu('menu=Main'); # Will display menu 'Main' here
(Please note that the names are case-sensitive, e.g. ‘Main’ is different than ‘main’.)
5/21/2008: Sticky Menu 1.41 - Fixed type bug related to ‘class’ field.
Download links to the Sticky Menu plugin:
Sticky Menu Download Area (History)
Entry Filed under: WordPress plugins
230 Comments Add your own
Pages: « 23 … 11 10 9 8 7 6 5 [4] 3 2 1 »
40. Shuja Shabandri | July 12th, 2006 at 8:41 pm
Nice one.
I have created a Menu Manager plugin for wordpress. please check it out and let me know your comments.
http://www.wp-stuff.com/plugins/menu-manager-plugin-for-wordpress.html
39. John | July 8th, 2006 at 9:57 pm
Hi
I’ve installed the menu on a site and it works great. I’ve found it really easy to customise using CSS and am already planning to use it on another site.
One question. I need to increase the max length of the menu text from 55 to 56 characters. Is this possible? I edited the lines in the admin and menu php, deactivated and reactivated the menu, but this didn’t work. Any suggestions?
Many thanks.
John
38. just great thanx | July 3rd, 2006 at 7:22 am
great ….thanx
37. Carlo | July 2nd, 2006 at 7:24 pm
Plugin is not working on http://www.cmscuola.it/wp.
I followed all the instructions but it seems like before: no modifications, no errors, nothing at all!
I’m using php 4.
Thanks Carlo
36. Roy | June 29th, 2006 at 10:08 pm
35. Roy | June 29th, 2006 at 10:02 pm
Simon, you need to put it like this at least..
display_menu(’menu=Main’); ?>
See the tags?
BUT: My site neither works, I have the WP 2.0 default theme but in my sidebar appears:
Object
And after this the links.
What am I doing wrong.
I think it should be better to explain things a little better here to avoid these problems?
34. Simon | June 28th, 2006 at 1:53 pm
Hi, I´ve been trying with Sticky-Menu for a while, but I just keep getting the line
$menu = new stickymenu;
$menu->display_menu(’menu=Main’); # Will display menu ‘Main’
I added in my header.php right there on my page. Am I missing anything. Sorry, I´m really new into wordpress and plugins …
33. Nic | June 23rd, 2006 at 6:22 am
My wish list:
Priority 1:
- Ability to create child items
Priority 2:
- Ability to assign tabindex values
Not trying to be pushy, just very happy about this plugin, and only wish for a wee bit more functionality is all
32. Nic | June 23rd, 2006 at 5:18 am
Exactly what the doctor ordered! Thank you *so* much for this plugin, it’s a life saver and with a few modifications should be included in the core WP install, IMHO
31. John | June 20th, 2006 at 5:23 pm
Thanks for Sticky Menu. It is fantastic.
Pages: « 23 … 11 10 9 8 7 6 5 [4] 3 2 1 »
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed