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 … 12 11 10 9 8 [7] 6 5 4 3 2 … 1 »
70. peter | October 16th, 2006 at 2:06 pm
I like the menu at the bottom of the headerimage. Setting a margin-top doesn’t work. When the margin-top is set to more than 180px, the headerimage comes down with the menu. The solution is probably very simple, but I haven’t found it yet (probably because I don’t know much about stylesheets and PHP).
69. Makkisan | October 8th, 2006 at 6:29 am
Simply fantastic plugin, Thanks alot for this.
68. Gerhard Fontagnier | September 27th, 2006 at 11:10 am
thanks! good idea!
67. ericdes | September 26th, 2006 at 10:05 pm
Gerhard. No the sticky menu doesn’t do it. Maybe I should write a stick tab plugin…!
66. Gerhard Fontagnier | September 26th, 2006 at 5:42 pm
hello, thanks for this great plugin. please take a look an this site: http://web77.milhouse.kundenserver42.de/mannheim07/ - before i install sticky-menu the links on the top of the site are pages and the current pagelink are white (see it on “start”). can i do the same with sticky menu - is there a chance to call “the current sticky menupoint”? thanks a lot …
65. » Wordpress Plugins&hellip | September 10th, 2006 at 1:40 pm
[…] Sticky Menus - Easily create menus that link to internal content or external urls […]
64. Roulie | August 24th, 2006 at 11:28 pm
No it’s ok, thanks a lot for your explanations…
63. tela | August 24th, 2006 at 6:41 pm
Roulie,
It really depends of your stylesheet and how your template is made.
I can have a quick look at your site if you want. Just give me the address.
62. Roulie | August 24th, 2006 at 12:11 pm
bad…
61. Roulie | August 24th, 2006 at 11:14 am
Sorry, it works well!
Thanks…
Do you know how I can do to make my menu larger, I mean all the width of the page?
(Sorry my english is very but I’m french…)
Pages: « 23 … 12 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