. add_theme_support( 'automatic-feed-links' ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'azurebasic' ) ); // Add support for a variety of post formats add_theme_support( 'post-formats', array( 'aside', 'gallery','link','image','quote','status','video','audio','chat' ) ); // Add support for custom backgrounds add_custom_background(); // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images add_theme_support( 'post-thumbnails' ); } endif; // azurebasic_setup // custom header image support define('NO_HEADER_TEXT', true ); define('HEADER_TEXTCOLOR', ''); define('HEADER_IMAGE', '%s/images/Pixar-Brave-990x300.jpg'); // %s is the template dir uri define('HEADER_IMAGE_WIDTH', 986); // use width and height appropriate for your theme define('HEADER_IMAGE_HEIGHT', 300); // gets included in the admin header function admin_header_style() { ?>' . __( 'Read More ', 'azurebasic' ) . ''; } // Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and azurebasic_continue_reading_link(). function azurebasic_auto_excerpt_more( $more ) { return ' …' . azurebasic_continue_reading_link(); } add_filter( 'excerpt_more', 'azurebasic_auto_excerpt_more' ); // Adds a "Read More" link to custom post excerpts. function azurebasic_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= azurebasic_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'azurebasic_custom_excerpt_more' ); //Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. function azurebasic_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'azurebasic_page_menu_args' ); //Register sidebars and widgetized areas. function azurebasic_widgets_init() { // Sidebar Widget // Location: the sidebar register_sidebar(array( 'name'=>__('Sidebar', 'azurebasic'), 'before_widget' => '
', 'before_title' => '', '' ); ?>