Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

enable menu in Wordpress 3 themes

Im a wordpress noobie.

Im making a new Wordpress theme. Im using version 3.3.1. I've read that for making menus I should use the "Menu" section of each theme:

http://awesomescreenshot.com/01atql42e

But when I activate my own theme I CREATED, that option is not present.

http://awesomescreenshot.com/0f0tqmhc6

What am I missing?

like image 597
Enrique Moreno Tent Avatar asked Feb 06 '12 18:02

Enrique Moreno Tent


1 Answers

Wordpress changed the code in 3.0 that generates the nav you are probably using the old code. The new functionality is described in the codex here.

http://codex.wordpress.org/Function_Reference/wp_nav_menu

You also have to include this in your functions.php

add_theme_support( 'menus' );

Here's a good tutorial.

http://millionclues.com/problogging/wordpress-tips/make-your-theme-wordpress-3-0-compatible/

like image 179
thenetimp Avatar answered Sep 28 '22 17:09

thenetimp