'Primary - Index', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Primary - Post', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Secondary - Shared', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); } add_theme_support( 'automatic-feed-links' ); /** * Setup the WordPress core custom background feature. * * Hooks into the after_setup_theme action. */ function grid_focus_register_custom_background() { add_theme_support( 'custom-background', apply_filters( 'grid_focus_custom_background_args', array( 'default-color' => '', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'grid_focus_register_custom_background' ); /** * Enqueue scripts and styles */ function grid_focus_scripts() { wp_enqueue_style( 'grid-focus', get_stylesheet_uri() ); wp_enqueue_script( 'grid-focus', get_template_directory_uri(). '/js/functions.js', array( 'jquery' ), false, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'grid_focus_scripts' ); /** * Filters wp_title to print a neat tag based on what is being viewed. * * @since Grid Focus 1.1 */ function grid_focus_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', 'grid-focus' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'grid_focus_wp_title', 10, 2 ); /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php';