__('Primary Sidebar', 'pdxchambers-basic'), 'id' => 'site-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' =>'

', 'after_title' => '

' )); } /*Add Theme Support for WP Features*/ function pdxc_add_support() { $header_args = array ( 'default-image' => PDXC_IMAGE_DIRECTORY . 'header/train.png', 'width' => 1024, 'height' => 768, 'flex-width' => true, 'flex-height' => true, 'header-text' => true, 'default-text-color' => '#000' ); $background_args = array ( 'default-color' => '#fff' ); add_theme_support( 'title-tag' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'custom-header', $header_args ); add_theme_support( 'custom-background', $background_args ); add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); add_editor_style( '/css/pdxc-basic-styles.css' ); register_default_headers( array( 'train' => array( 'url' => '%s/images/header/train.png', 'thumbnail_url' => '%s/images/header/train_thumbnail.png', 'description' => __( 'Train', 'pdxchambers-basic' ) ) ) ); } function pdxc_add_inline_styles() { $image = esc_url( get_header_image() ); $custom_css = " #site-header{ background: url( $image ) ; }"; wp_add_inline_style( 'pdxc-main-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'pdxc_add_inline_styles' );