'ffffff', 'text' => '333333', 'link' => '0066cc', 'border' => '5581C0', 'url' => '114477', ); $content_width = 450; add_theme_support( 'automatic-feed-links' ); add_custom_background(); add_theme_support( 'print-style' ); define('HEADER_TEXTCOLOR', 'E5F2E9'); define('HEADER_IMAGE', '%s/images/blue_flower/head.jpg'); // %s is theme dir uri define('HEADER_IMAGE_WIDTH', 750); define('HEADER_IMAGE_HEIGHT', 140); /** * Enqueue scripts and styles */ function contempt_scripts() { wp_enqueue_style( 'contempt', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'contempt_scripts' ); function header_style() { ?> __( 'Primary Navigation', 'contempt' ), ) ); /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link, add a specific class to style it, and set depth to 1. * */ function contempt_page_menu_args( $args ) { $args['show_home'] = true; $args['depth'] = 1; $args['menu_class'] .= " pagebar"; return $args; } add_filter( 'wp_page_menu_args', 'contempt_page_menu_args' ); /** * Filters wp_title to print a neat tag based on what is being viewed. * * @since Contempt 1.0 */ function contempt_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'contempt' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'contempt_wp_title', 10, 2 );