• Resolved TyMcClendon

    (@tymcclendon)


    Hi all,

    I’m trying to change the header size of the twenty eleven template.

    I’ve made a functions.php file in my child theme, and input the following:

    <?php
    define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘twentyeleven_header_image_width’, 1000 ) );
    define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘twentyeleven_header_image_height’, 100 ) );
    ?>

    The header size changes in the admin panel. For example, when I go to appearance > header, the image dimensions say 1000 x 100.

    When I attempt to view these changes on the website, the header does not change in size. I view the source and it says the image’s height attribute is set to 100, but the image’s display is much larger than 100px.

    Any ideas why the header won’t change it’s actual size?

    Thanks!

    Ty

Viewing 16 replies (of 16 total)
Viewing 16 replies (of 16 total)
  • The topic ‘Changing the header size of twenty eleven’ is closed to new replies.