• I am trying to get a header across the top of the twenty twelve theme. It keeps resizing to the 950 by 250 size.
    What I have done:
    -I have uploaded bigger images and they get scaled down.
    -edited functions.php with:
    function twentytwelvechild_custom_header_setup() {
    $header_args = array( ‘height’ => 250, ‘width’ => 1100 );
    add_theme_support( ‘custom-header’, $header_args );
    }
    add_action( ‘after_setup_theme’, ‘twentytwelvechild_custom_header_setup’ );
    ***removed the open and close php statement to avoid issues
    -I have played with values in the header.php and customheader.php and adjusted values to 100% as stated in another thread as a solution.

    I have reset everything except the above php code since nothing worked. the site is ladyeuphei.com and I want that banner at the top to stretch all the way across.
    Thank you for your time and effort!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Your header is resizing due to CSS. Are you using a Child Theme or Custom CSS plugin?

    Thread Starter Killsmallchildren

    (@killsmallchildren)

    Using a Child Theme

    You have some strange code between the head and body sections of the page:

    </head>
    
    '<style>
    @import url("https://www.ladyeuphei.com/wp-content/themes/twentytwelve/style.css");
    @import url("https://www.ladyeuphei.com/wp-content/themes/CustomTheme/style.css");
    </style>'
    
    <body class="home page page-id-4 page-template-default custom-background custom-font-enabled single-author">

    Where is that coming from? It’s incorrect.

    Thread Starter Killsmallchildren

    (@killsmallchildren)

    For some weird reason, that is the only way to get the child style sheet to work.

    Thread Starter Killsmallchildren

    (@killsmallchildren)

    /*
    Theme Name: CustomTheme-child
    Theme URI: https://www.ads-software.com/
    Description: Child Theme for Twenty Ten
    Author: Terrill Richardson
    Author URI: https://ladyeuphei.com/
    Template: twentytwelve
    Version: 0.1
    */
    @import url('..themes/twentytwelve/style.css');
    
    #site-navigation {
        display:none;
    }
    
    .site-content {
    		width: 64.1042%;
    		}
    .widget-area {
    		width: 34.0417%;
    		min-width: 320px;
            	}
    
    .site-info {
    	display:none;
    		}
    
    .site-header {
    	padding: 0px 0;
    	padding: 0rem 0;
    }
    
    .header-image {
    	margin-top: 0px;
    	margin-top: 0rem;
    }

    This is the style sheet of the child but without that little think in the header it doesnt load the style sheet from the parent.

    Your @import line is wrong – it should be this:

    @import url("../twentytwelve/style.css");

    Remove the other code – it will not work and it is creating major validation errors.

    Thread Starter Killsmallchildren

    (@killsmallchildren)

    Well cool that fixes a weird code problem. Still dont know how to get the banner to do what I want. Thanks for that though.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Header resizing (I have read all the other posts on it)’ is closed to new replies.