Monthly Archives: July 2011

Tutorial On Walker Class for wp_nav_menu

Have you ever wondered how you could change the look of the Custom Menus provided by WordPress 3+?  Here is a tutorial on creating a ‘Walker’ that will let you do that.

OK, so what is a ‘Walker’?

A Walker is just a bit of code that can process a list of items one at a time – it ‘walks’ the list.  The walker is called once for each item, in order, and receives all the details about each item.  It is responsible for assembling the details into the desired output for the item.

The tutorial shows you how to create a Walker that will add a short description to each top level menu item.

Non-clickable Item In A WP Custom Menu

To add a non-clickable menu item to a WordPress Custom Menu, follow these steps:

  1. Open the Menu panel in Admin->Appearance->Menus.
  2. If you are starting a new menu, enter a name in the ‘Menu Name’ box and click ‘Save Menu’, otherwise click the name in the tabs above Menu Name.
  3. Under ‘Custom Links’ in the left column, enter a single pound sign (#) in the URL box.
  4. Enter the Label for the item in the Label box.
  5. Click ‘Add to Menu’.
  6. Position the item in the Menu by dragging it to the correct location.
  7. Click ‘Save Menu’.

Add Theme Options to Artisteer 3 Theme

Have you ever wished you could make life easier for the users of your theme by giving them some custom Theme Options?  Well, here is how to do it in an Artisteer theme.  This technique might work with other versions, but I have not tested it on any others.

The easiest way is to use the OptionTree plugin.  Unfortunately, it conflicts with another plugin that I like to use.  Besides, if I can avoid using a plugin by using just a bit of code, it is usually worth it.

Continue reading

Artisteer 3 Members Only Area

I recently completed a project for an organization that wanted to have a ‘Members Only’ area for certain users.  Their initial requirement was to have 3 groups of Members: Supervisor, Tutor, and Student, each with their own capabilities and content restricted to the group.

Continue reading

Make Artisteer Header Area Clickable

If you have an Artisteer theme, here is how to make the header area clickable. This has been tested with:

  • WordPress 3.1.3
  • Artisteer 3
  • Firefox 5
  • IE 9
  • Chrome 12

First, make sure the Headline/Title is visible. Then, add the following lines to your style.css: Continue reading