Return to Snippet

Revision: 30611
at August 18, 2010 04:06 by Jamie


Initial Code
add_action('after_setup_theme','my_after_setup_theme_function');
function my_after_setup_theme_function(){
	add_theme_support('post-thumbnails');
	register_nav_menus(
		array(
			'primary'=>'Primary Menu',
			'footer'=>'Footer Menu',
			'sidebar'=>'Sidebar Menu'
		));
	}
}

Initial URL

                                

Initial Description
This may be necessary to properly add theme support for multiple menus.

Initial Title
WordPress after_setup_theme Action & Function

Initial Tags
wordpress, theme

Initial Language
PHP