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.

Sticky Menu's screenshot - Click to enlarge
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

Sticky Menu - See the result!

(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 1.41 (tar.gz)

Sticky Menu 1.41 (.zip)


Sticky Menu Download Area (History)

Entry Filed under: WordPress plugins

218 Comments Add your own

Pages: « 2221 20 19 18 17 [16] 15 14 13 12 111 »

  • 160. Roman  |  June 21st, 2007 at 2:48 pm

    I like sticky menu and gengo (multilingual) plugin. Because I found no other post covering gengo and sticky menu, I post this info here:

    Info:
    According to the gengo forum, sticky menu plugin (and many others) call the textdomain too early. To fix it, they tell gengo users to do the following in the no-more-working other plugins:

    
    function plugin1_my_init() {
    load_plugin_textdomain('plugin1');} 
    add_action('init', 'plugin1_my_init');
    

    Maybe you want to adjust sticky menu accordingly.

    Sticky menu enhancement suggestion:

    Enhance sticky menu to support language specific menu item labels so that the right menu item text is shown depending on the users browser language.

    -Roman-

  • 159. tela  |  June 21st, 2007 at 5:01 am

    Hi AJ,
    It looks like your problem is not linked to the Sticky Menu.

    I have two suggestions for you. First, maybe you get this error page because there is still no posts in those categories?

    (The posts listed in the Event calendar will be published only when the date of the event is reached.)

    Let’s try and publish a post in category 4, for example, and check if you still have the problem.

    Another suggestion would be to turn on Permalinks. This will help you manage your URLs and what’s more will help you to get a better position in the seach engines.

    For this you go under Options > Permalinks

  • 158. AJ  |  June 19th, 2007 at 9:15 pm

    I’m using the Sticky Menu plugin 1.3 on WP 2.2. I am trying to create a link that will display the posts in a specific category, i.e. index.php?cat=4. It works great on my localhost for testing but when I set it up live on the site, I get a Page Not Found error message.

    I have searched for the answer for days, tried all kinds of ways of configuring this link, and I’m really stumped…do you know what I’m doing wrong?

    thanks for your help…

  • 157. TemplateXtreme Sample &ra&hellip  |  June 5th, 2007 at 5:29 pm

    […] Easy to edit custom navigation with the Sticky Menu plugin. […]

  • 156. ericdes  |  June 5th, 2007 at 12:05 pm

    There were some issues with the installation routine of the plugin but I’m quite sure I did it right for version 1.3 and I tested it against WordPress 2.2. Now, how come you can’t create the table manually?

  • 155. Kurt  |  June 5th, 2007 at 12:59 am

    I love this plugin and have used it for many sites. I can’t get a clean install using WP 2.2 and the 1.3 version. The tables are not being created automatically. I tried to manually create them but that hasn’t worked wither. Usually when this happens, I revert to version 1.1 and it works, but this time that didn’t work either. Any ideas?

    Thanks in advance.

  • 154. ericdes  |  June 2nd, 2007 at 6:55 pm

    Use StickyMenu 1.3 for the latest releases of WordPress.

  • 153. Frederick  |  May 26th, 2007 at 7:52 am

    Help! I’ve installed the plugin, activated it, configured it, but I see no menu. I simply want to add a menu button that links to one of my category pages “Podcast”. I’m running the latest version of Wordpress… what am I doing wrong? :(

    Frederick

  • 152. WP Plugins DB » Blo&hellip  |  May 20th, 2007 at 9:55 am

    […] Visit […]

  • 151. Ivan  |  May 16th, 2007 at 5:09 pm

    Ty tela 4 all ur help!!! ;)

Pages: « 2221 20 19 18 17 [16] 15 14 13 12 111 »

Leave a Comment

Required

Required, hidden

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