Note that there are some explanatory texts on larger screens.

plurals
  1. PORemoved header and footers outside of wrap, now having trouble styling logo
    primarykey
    data
    text
    <p><a href="http://charlestonduilawfirm.com/" rel="nofollow noreferrer">http://charlestonduilawfirm.com/</a></p> <p>A client wanted the header to span the width of the page. It appears I was able to do so partially, but the header background color isn't extending all the way across the page. Also, the logos run outside of the margins of the content-sidebar wrap. </p> <p>How do I extend the background color all the way across the page as the browser window expands while still locking the header content above the content/sidebar once it reaches a certain width? Normally, I use themes that already have this functionality and am only in the early stages of coding, so I'm at a loss with the CSS here. Here is what I have in my custom CSS file right now. </p> <pre><code> #header { height: 110px; background-color: #055792; } #header .widget-area { float: right; width: 30%; } .header-image #title-area, .header-image #title, .header-image #title a { height: 110px; width: 70%; background: url("http://charlestonduilawfirm.com/wp-content/themes/executive/images/logo.png") left no-repeat; } </code></pre> <p>Also, here is the functions.php. Is it possible that the full effect isn't registering because of a conflict with my commenting out the custom header?</p> <pre><code>&lt;?php /** Start the engine */ require_once( get_template_directory() . '/lib/init.php' ); load_child_theme_textdomain( 'executive', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'executive' ) ); /** Child theme (do not remove) */ define( 'CHILD_THEME_NAME', __( 'Executive Theme', 'executive' ) ); define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/executive' ); /** Add Viewport meta tag for mobile browsers */ add_action( 'genesis_meta', 'executive_add_viewport_meta_tag' ); function executive_add_viewport_meta_tag() { echo '&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"/&gt;'; } /** Add support for custom background */ add_theme_support( 'custom-background' ); /** Add support for custom header */ add_theme_support( 'genesis-custom-header', array( 'width' =&gt; 1140, 'height' =&gt; 100 ) ); /**Remove support for custom header*/ remove_theme_support( 'genesis-custom-header'); /** Sets Content Width */ $content_width = apply_filters( 'content_width', 680, 680, 1020 ); /** Create additional color style options */ add_theme_support( 'genesis-style-selector', array( 'executive-brown' =&gt; __( 'Brown', 'executive' ), 'executive-green' =&gt; __( 'Green', 'executive' ), 'executive-orange' =&gt; __( 'Orange', 'executive' ), 'executive-purple' =&gt; __( 'Purple', 'executive' ), 'executive-red' =&gt; __( 'Red', 'executive' ), 'executive-teal' =&gt; __( 'Teal', 'executive' ), ) ); /** Unregister layout settings */ genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' ); /** Unregister secondary sidebar */ unregister_sidebar( 'sidebar-alt' ); /** Add new image sizes */ add_image_size( 'featured', 285, 100, TRUE ); add_image_size( 'portfolio', 300, 200, TRUE ); add_image_size( 'slider', 1140, 445, TRUE ); /** Remove the site description */ remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); /** Relocate the post info */ remove_action( 'genesis_before_post_content', 'genesis_post_info' ); add_action( 'genesis_before_post_title', 'genesis_post_info' ); /** Customize the post info function */ add_filter( 'genesis_post_info', 'post_info_filter' ); function post_info_filter($post_info) { if (!is_page()) { $post_info = ' &lt;div class=\'date-info\'&gt;' . __('posted on', 'executive' ) . ' [post_date format="F j, Y" before="&lt;span class=\'date\'&gt;" after="&lt;/span&gt;"] ' . __('by', 'executive' ) . ' [post_author_posts_link] [post_edit] &lt;/div&gt; &lt;div class="comments"&gt; [post_comments] &lt;/div&gt;'; return $post_info; } } /** Change the default comment callback */ add_filter( 'genesis_comment_list_args', 'executive_comment_list_args' ); function executive_comment_list_args( $args ) { $args['callback'] = 'executive_comment_callback'; return $args; } /** Customize the comment section */ function executive_comment_callback( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?&gt; &lt;li &lt;?php comment_class(); ?&gt; id="comment-&lt;?php comment_ID() ?&gt;"&gt; &lt;?php do_action( 'genesis_before_comment' ); ?&gt; &lt;div class="comment-header"&gt; &lt;div class="comment-author vcard"&gt; &lt;?php echo get_avatar( $comment, $size = $args['avatar_size'] ); ?&gt; &lt;?php printf( '&lt;cite class="fn"&gt;%s&lt;/cite&gt; &lt;span class="says"&gt;%s:&lt;/span&gt;', get_comment_author_link(), apply_filters( 'comment_author_says_text', __( 'says', 'executive' ) ) ); ?&gt; &lt;div class="comment-meta commentmetadata"&gt; &lt;a href="&lt;?php echo esc_url( get_comment_link( $comment-&gt;comment_ID ) ); ?&gt;"&gt;&lt;?php printf( '%1$s ' . __('at', 'executive' ) . ' %2$s', get_comment_date(), get_comment_time() ); ?&gt;&lt;/a&gt; &lt;?php edit_comment_link( __( 'Edit', 'executive' ), g_ent( '&amp;bull; ' ), '' ); ?&gt; &lt;/div&gt;&lt;!-- end .comment-meta --&gt; &lt;/div&gt;&lt;!-- end .comment-author --&gt; &lt;/div&gt;&lt;!-- end .comment-header --&gt; &lt;div class="comment-content"&gt; &lt;?php if ($comment-&gt;comment_approved == '0') : ?&gt; &lt;p class="alert"&gt;&lt;?php echo apply_filters( 'genesis_comment_awaiting_moderation', __( 'Your comment is awaiting moderation.', 'executive' ) ); ?&gt;&lt;/p&gt; &lt;?php endif; ?&gt; &lt;?php comment_text(); ?&gt; &lt;/div&gt;&lt;!-- end .comment-content --&gt; &lt;div class="reply"&gt; &lt;?php comment_reply_link( array_merge( $args, array( 'depth' =&gt; $depth, 'max_depth' =&gt; $args['max_depth'] ) ) ); ?&gt; &lt;/div&gt; &lt;?php do_action( 'genesis_after_comment' ); /** No ending &lt;/li&gt; tag because of comment threading */ } /** Create portfolio custom post type */ add_action( 'init', 'executive_portfolio_post_type' ); function executive_portfolio_post_type() { register_post_type( 'portfolio', array( 'labels' =&gt; array( 'name' =&gt; __( 'Portfolio', 'executive' ), 'singular_name' =&gt; __( 'Portfolio', 'executive' ), ), 'exclude_from_search' =&gt; true, 'has_archive' =&gt; true, 'hierarchical' =&gt; true, 'menu_icon' =&gt; get_stylesheet_directory_uri() . '/images/icons/portfolio.png', 'public' =&gt; true, 'rewrite' =&gt; array( 'slug' =&gt; 'portfolio' ), 'supports' =&gt; array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'genesis-seo' ), ) ); } /** Change the number of portfolio items to be displayed (props Bill Erickson) */ add_action( 'pre_get_posts', 'executive_portfolio_items' ); function executive_portfolio_items( $query ) { if( $query-&gt;is_main_query() &amp;&amp; !is_admin() &amp;&amp; is_post_type_archive( 'portfolio' ) ) { $query-&gt;set( 'posts_per_page', '12' ); } } /** Add support for 3-column footer widgets */ add_theme_support( 'genesis-footer-widgets', 3 ); /** Register widget areas **/ genesis_register_sidebar( array( 'id' =&gt; 'home-slider', 'name' =&gt; __( 'Home - Slider', 'executive' ), 'description' =&gt; __( 'This is the slider section on the home page.', 'executive' ), ) ); genesis_register_sidebar( array( 'id' =&gt; 'home-top', 'name' =&gt; __( 'Home - Top', 'executive' ), 'description' =&gt; __( 'This is the top section of the home page.', 'executive' ), ) ); genesis_register_sidebar( array( 'id' =&gt; 'home-cta', 'name' =&gt; __( 'Home - Call To Action', 'executive' ), 'description' =&gt; __( 'This is the call to action section on the home page.', 'executive' ), ) ); genesis_register_sidebar( array( 'id' =&gt; 'home-middle', 'name' =&gt; __( 'Home - Middle', 'executive' ), 'description' =&gt; __( 'This is the middle section of the home page.', 'executive' ), ) ); /** Move header and footer outside the wrap */ remove_action( 'genesis_header', 'genesis_do_header' ); add_action( 'genesis_before', 'genesis_do_header' ); remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_after', 'genesis_do_footer' ); </code></pre> <p>I figured this would be a common issue but didn't have much success on Google or the search function here. Any help would be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload