'', 'default-image' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '_admin_head_custom_background_cb', 'admin-preview-callback' => '_admin_custom_background_cb', ); if ( version_compare( $wp_version, '3.4', '>=' ) ) : add_theme_support( 'custom-background', $background_args ); else : add_theme_support( 'custom-background', $args ); endif; } // Add Custom BG add_theme_support( 'custom-background', $args ); function nasturtium_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', 'nasturtium' ), max( $paged, $page ) ); // Enable post thumbnails add_theme_support('post-thumbnails'); set_post_thumbnail_size(520, 250, true); return $title; } add_filter( 'wp_title', 'nasturtium_wp_title', 10, 2 ); function load_google_fonts() { wp_register_style('googleFontsSpecialElite','http://fonts.googleapis.com/css?family=Special+Elite'); wp_enqueue_style( 'googleFontsSpecialElite'); wp_register_style('googleFontsSpinnaker','http://fonts.googleapis.com/css?family=Spinnaker'); wp_enqueue_style( 'googleFontsSpinnaker'); wp_register_style('googleFontsLovedByTheKing','http://fonts.googleapis.com/css?family=Loved+by+the+King'); wp_enqueue_style( 'googleFontsLovedByTheKing'); } add_action('wp_print_styles', 'load_google_fonts'); function nasturtium_scripts_styles() { // Adds JavaScript to pages with the comment form to support sites with // threaded comments (when in use). if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'nasturtium_scripts_styles' ); function nasturtium_setup(){ // Add Custom Header add_theme_support( 'custom-header', $args ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Navigation Menu', 'nasturtium' ) ); // This theme uses its own gallery styles. add_filter( 'use_default_gallery_style', '__return_false' ); // Adds RSS feed links to for posts and comments. add_theme_support( 'automatic-feed-links' ); // Switches default core markup for search form, comment form, and comments // to output valid HTML5. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // Add Post Formats add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio' ) ); // Editor Support add_editor_style(); // Set Content Width $content_width = 728; if ( ! isset( $content_width ) ) $content_width = 625; } function nasturtium_sidebar_setup() { dynamic_sidebars( $sidebars ); } function nasturtium_widgets_init() { register_sidebar( array( 'name' => __( 'Main Widget Area', 'nasturtium' ), 'id' => 'sidebar-1', 'description' => __( 'Appears in the sidebar area of the main section of the site.', 'nasturtium' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'nasturtium' ), 'id' => 'sidebar-2', 'description' => __( 'Appears on posts and pages in the sidebar.', 'nasturtium' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } function nasturtium_footer_widgets_init() { register_sidebar( array( 'name' => __( 'Left Footer Widget Area', 'nasturtium' ), 'id' => 'footer_left', 'description' => __( 'Appears on the left side of the footer.', 'nasturtium' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Right Footer Widget Area', 'nasturtium' ), 'id' => 'footer_right', 'description' => __( 'Appears on the right side of the footer.', 'nasturtium' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'footer_widgets_init', 'nasturtium_footer_widgets_init' ); ?>