Adding Menu Support

With the most recent update to WordPress (3.6.1), you now need to add some menu support to your custom theme or you’ll get a lovely little message that falsely announces that your theme does not support menus. In actuality, you can leave this out of your files, allow the message to remain, and you’ll notice that you actually can use menus. For the way I use menus, this drives me crazy. If you wanted to allow your user to create a bunch of menus and have them assign it a location themselves, sure fine sure, then this is required. However, I like to keep menus fairly strict in my themes; I find this leaves less room for my users to inadvertently cause an issue in their site (assign a menu to a less-than-perfect location).

That said, I also hate that message that says my theme doesn’t support menus. Ergo, here’s how you remove it.

As with seemingly everything, this should be placed in your functions.php file.

function register_my_menus() {
  register_nav_menus(
    array(
      'top-nav' => __( 'Top Navigation' ),
      'foot-nav' => __( 'Footer Navigation' )
    )
  );
}
add_action( 'init', 'register_my_menus' );

cw-index-1-r2
goUSF-index-1
usfgm-index-1-r3
bgl-index-1
ucon-index-1-r1
adopt-index-2
skalet-index-1-r2
pcabral
th-index-1
rms-index-2
km-index-1-r1
peu-index-2-r3b
pdu-index-1-r2a
oph-index-1-r2
mmm-index-1
long-index-1-r1a
ernies-index-1
cooks-index-1-r2a
df-index-1-r1
vs-index-1
uni-index-1
pe-wedding-print
Screen shot 2013-10-25 at 3.38.39 PM
fred
cabral
dava
psa
errg
apex
pag
cwb
beginners
awakealive
ecom
ab