for posts and comments. add_theme_support( 'automatic-feed-links' ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'top-menu', __( 'Top Menu', 'alpona' ) ); // Add theme support for title tag add_theme_support( 'title-tag' ); /* * This theme supports custom background color and image, * and here we also set up the default background color. */ add_theme_support( 'custom-background', array( 'default-color' => '#e6e6e6', 'header-text' => true, 'default-text-color' => '444', ) ); /* Add theme support for custom-header */ $args = array( 'width' => 1200, 'height' => 250, 'uploads' => true, 'default-text-color' => '444444', ); add_theme_support( 'custom-header', $args ); // Adding post thumbnail add_theme_support( 'post-thumbnails' ); } add_action( 'after_setup_theme', 'alpona_setup_theme' ); /** * ---------------------- * Step 4.0 - Filter Menu * ---------------------- * * Filter the page menu arguments. * * Makes our wp_nav_menu() to fallback - wp_page_menu() - show a home link. * * @since alpona 1.0 */ function alpona_page_menu_args( $args ) { if ( ! isset( $args['show_home'] ) ) $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'alpona_page_menu_args' ); /** * -------------------------- * Step 5.0 - Filter WP title * -------------------------- * * Register sidebars. * * Registers our widgets area. * * @since alpona 1.0 */ function alpona_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar right', 'alpona' ), 'id' => 'sidebar-1', 'description' => __( 'Appears on first sidebar on right where widgets are shown.', 'alpona' ), 'before_widget' => '', 'before_title' => '
', '' ); ?>