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 … 16 15 14 13 12 [11] 10 9 8 7 6 … 1 »
110. tela | March 6th, 2007 at 11:14 am
Hi Marie,
Which version are you trying to install?
As eric put it before, there is an installation issue with the last version 1.2.
That’s why he recommends to use version stickymenu 1.1.
109. marie | March 6th, 2007 at 10:38 am
presision : when i try to create a database it is refused because the name is too long !!! (omnigolf_winkel.wp_stickymenu).
I’ m totally in the dark…
108. marie | March 5th, 2007 at 11:36 pm
i have the same probleme, mu blog is under a sub domain (winkel)
Erreur de la base de donnĂ©es de WordPress : [Table ‘omnigolf_winkel.wp_stickymenu’ doesn’t exist]
SELECT DISTINCT menu FROM `wp_stickymenu`
i get crazy. i can’ t create myself the table ! what to do i have tried everything !
107. Kurt | March 1st, 2007 at 3:43 pm
Tela,
Thanks so much for clearing this up for me. For some reason I was under the impression that “number of menu items” was only used when a new menu is created, but now it makes complete sense to me. I don’t know how I missed it…
Thanks again!
Kurt
106. tela | March 1st, 2007 at 4:47 am
Hi Kurt,
To add more menu items to an existing menu you go to the Sticky Menu admin panel (under Manage in the dashboard).
Just under the main title: Menu Items, you find “Add new menu item(s)”.
You enter the number of new menu items you want to add in the text box under: “Number of menu items”
Then you click “Go”.
If you have several menus on your website, you’ll choose the one you want to add the menu items to on the next screen.
105. Kurt | February 28th, 2007 at 7:31 pm
I switched to Sticky Menu 1.1 and it is now working under WP 2.1 - thanks for the info.
Ques: How can add more menu items to an existing menu? I have found that option yet, or am I missing something?
104. ericdes | February 27th, 2007 at 4:37 am
I unfortunately don’t have to time to look at the problem in the installation routine, please use version stickymenu 1.1 which works flawlessly. Thank you.
103. Xen Namgyal | February 27th, 2007 at 3:58 am
I have set up the database and am getting the same problem with comment 98 & 99. This is what I get when I go to set up the menu:
WordPress database error: [Unknown column ‘class’ in ‘field list’]
INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Home’, ”, ‘main’, ”, 0, 0);
WordPress database error: [Unknown column ‘class’ in ‘field list’]
INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Policy’, ”, ‘main’, ”, 0, 0);
WordPress database error: [Unknown column ‘class’ in ‘field list’]
INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Privacy’, ”, ‘main’, ”, 0, 0);
WordPress database error: [Unknown column ‘class’ in ‘field list’]
INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Sitemap’, ”, ‘main’, ”, 0, 0);
Any ideas??
Thanx
Xen
102. Julie | February 27th, 2007 at 3:48 am
Nevermind. I give up. I switched to a template that actually works. Yea me!
101. Julie | February 26th, 2007 at 7:11 pm
Hello. Anybody there? I still need some help. I’ve tried contacting you guys on here and through templatextreme.com. If you could help a few f us out, it would be greatly appreciated.
Pages: « 23 … 16 15 14 13 12 [11] 10 9 8 7 6 … 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