. add_theme_support( 'automatic-feed-links' ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); // Add support for custom backgrounds add_custom_background(); } endif; /** * Enqueues the theme's stylesheet. * * The wp_enqueue_scripts hook is meant for both styles and scripts, and only * fires on the frontend. * * @since Twenty Twelve 1.0 */ function twentytwelve_enqueue_scripts() { wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) ); } add_action( 'wp_enqueue_scripts', 'twentytwelve_enqueue_scripts' ); /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. * * @since Twenty Twelve 1.0 */ function twentytwelve_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); /** * Register our single widget area. * * @since Twenty Twelve 1.0 */ function twentytwelve_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', 'twentytwelve' ), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '
', '' ); ?>