__( 'Header Navigation', 'denta_lite' ), 'footer_navigation' => __( 'Footer Navigation', 'denta_lite' ) ); register_nav_menus( $locations ); } add_action( 'init', 'denta_lite_custom_navigation_menus' ); /** * Content Width */ if ( ! isset( $content_width ) ) $content_width = 756; /** * Add Theme Support */ add_theme_support( 'post-thumbnails' ); // Post Thumbnails add_theme_support( 'automatic-feed-links' ); // Automatic Feed Links $args_custom_header = array( 'width' => '262', 'height' => '90', 'flex-height' => true, 'header-text' => true, 'default-image' => get_template_directory_uri() . '/images/logo.png' ); add_theme_support( "custom-header", $args_custom_header ); // Custom Header $args_custom_background = array( 'default-color' => '#ffffff', 'default-repeat' => 'no-repeat', 'default-attachment' => 'fixed' ); add_theme_support( "custom-background", $args_custom_background ); // Custom Background /** * The Post Thumbnail */ the_post_thumbnail(); /** * Add Editor Style */ add_editor_style(); /** * General Sidebar */ function denta_lite_general_sidebar() { $args = array( 'id' => 'general_sidebar', 'name' => __( 'General Sidebar', 'denta_lite' ), 'description' => __( 'Use this sidebar to display widgets in your website, including posts and pages.', 'denta_lite' ), 'before_title' => '
', 'after_title' => '
', 'before_widget' => '
', 'after_widget' => '
', ); register_sidebar( $args ); } add_action( 'widgets_init', 'denta_lite_general_sidebar' ); /** * WP Title */ function denta_lite_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; // Add the site name. $title .= get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'denta_lite_wp_title', 10, 2 );