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

236 Comments Add your own

Pages: « 24 [23] 22 21 20 19 18 17 16 15 141 »

  • 230. Plugins I Used for 49ersG&hellip  |  November 19th, 2008 at 4:58 pm

    […] Sticky Menu He wanted a little more a custom navigation. So I used this plugin to to create multiple menus on the site that were all manageable form the backend. […]

  • 229. SJB  |  November 1st, 2008 at 10:40 pm

    Everything seems to be going fine except trying to insert:

    $menu = new stickymenu;
    $menu->display_menu(’menu=Main’); # Will display menu ‘Main’ here

    Into the header. Everywhere I think I should put it, it doesn’t work. What am I missing?

    Thanks!

  • 228. Dustin Boston  |  October 23rd, 2008 at 11:14 am

    I just posted a fix on my blog:

    http://theyoungbostons.com/dustin/archives/sticky-menu-installation-fix-for-wordpress-26

  • 227. Sticky Menu Installation &hellip  |  October 23rd, 2008 at 10:23 am

    […] you have recently tried to install the Sticky Menu plugin you will have noticed that it does not create a table in the database as it should. Here is the […]

  • 226. mogmismo  |  September 25th, 2008 at 4:06 pm

    Same issue, can’t create menu (WP 2.6.2). Fixed by looking in the plugin source, and seeing the table for mysql it wanted, and then inserting the table into my wordpress database manually:

    
    CREATE TABLE wp_stickymenu(
    id int( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
    pid VARCHAR( 55 ) NOT NULL ,
    name VARCHAR( 55 ) NOT NULL ,
    link VARCHAR( 255 ) NOT NULL ,
    menu VARCHAR( 55 ) NOT NULL ,
    class VARCHAR( 55 ) NOT NULL ,
    weight int( 11 ) NOT NULL DEFAULT '0',
    disabled TINYINT NOT NULL DEFAULT '0',
    UNIQUE KEY id( id )
    ) TYPE = MYISAM 
    

    Your mileage may vary.

  • 225. Elly  |  September 25th, 2008 at 1:13 pm

    Hi , why cant I create a menu ? after activating the sticky menu , when I want to create a menu it goes back to the same page I am , like refreshing button !!????

  • 224. Lisa  |  September 22nd, 2008 at 5:00 pm

    Wow! Works beautifully now! One more question… Is there a way to make sub-categories for menu items (e.i. for a drop-down list)? Thanks!

  • 223. Lisa  |  September 22nd, 2008 at 4:56 pm

    Ok, read a little more and fixed it ;)

  • 222. Lisa  |  September 22nd, 2008 at 4:47 pm

    Hi! When I use this plugin from the admin panel, it won’t save the menus I create. When I press save, it goes back to the initial page and I can’t see the menu I just created anywhere… Please help! :)

  • 221. Menu & Navigation Plu&hellip  |  September 18th, 2008 at 8:40 am

    […] plugin is called Sticky Menu. You can find the plugin and a more detailed explanation by following the link. Basically, the […]

Pages: « 24 [23] 22 21 20 19 18 17 16 15 141 »

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