Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    Do not edit the Twenty Eleven theme. First create a child theme for your changes. Or install a custom CSS plugin.

    FWIW, I can’t see any horizontal scrolling on your site.

    Thread Starter minimematernity

    (@minimematernity)

    I have a child theme in place. What code do i need to re-size the header?

    I was told that my image was too large and you have to scroll down the page to read it, so i am trying to make the image shorter so it does not require users to scroll vertically as much.

    Thanks!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you tried resizing the header image itself? The height is caused by the size of the actual image.

    esmi

    (@esmi)

    What image? Where?

    Michael

    (@alchymyth)

    I have a child theme in place.

    no activated right now – make sure to activate the child theme for the customisations; not using a child theme can have unwanted effects…

    the header image size is set in functions.php – something that simple forum search would have told you;

    you will need to add a functions.php into the child theme (if you haven’t one already) and add (make sure to have <?php in the first line and ?> in the last line of functions.php):

    function twentyelevenchild_custom_header_setup() {
    	$header_args = array( 'height' => 175, 'width' => 1000 );
    	add_theme_support( 'custom-header', $header_args );
    }
    add_action( 'after_setup_theme', 'twentyelevenchild_custom_header_setup' );

    afaik, the header size will only effecte later uploads; the existing headers will stay the same as they are.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Header Image Height’ is closed to new replies.