'#34495e')); add_theme_support('custom-header', array('default-image' => get_template_directory_uri() . '/img/logo.png', 'width' => '200px', 'height' => '200px')); add_theme_support('html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); add_theme_support('automatic-feed-links' ); // Text domain load_theme_textdomain( 'blackcolors', get_template_directory() . '/languages' ); // WordPress Content Width global $content_width; if ( !isset( $content_width ) ){ $content_width = 640; } } add_action('after_setup_theme', 'blackcolors_setup'); /** * Customizer Options */ require get_template_directory() . '/inc/customizer-options.php'; /** * Proper Theme Functions */ require get_template_directory() . '/inc/template-tags.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Title Filter */ add_filter( 'wp_title', 'blackcolors_title_for_home' ); function blackcolors_title_for_home( $title ) { if( empty( $title ) && ( is_home() || is_front_page() ) ) { return get_bloginfo( 'name' ); } return $title; } /** * Header Menu */ function blackcolors_menu() { register_nav_menu('primary', __('Header Menu', 'blackcolors')); } add_action( 'init', 'blackcolors_menu' ); /** * Widget Areas for footer */ function blackcolors_sidebar_footer(){ register_sidebars(2, array('name' => __('Footer %d', 'blackcolors'), 'before_title' => '