• Working with 20-11 child theme that now has only style.css and header.php files. Not sure I understand this, but…

    Can I simply create and upload an 980×320-pixel image, then create a functions.php file with this code?

    <?php
    remove_filter( 'HEADER_IMAGE_WIDTH', 'twentyeleven_header_image_width' );
    remove_filter( 'HEADER_IMAGE_HEIGHT', 'twentyeleven_header_image_height' );
    define( 'HEADER_IMAGE_WIDTH', apply_filters( 'child_header_image_width', 980 ) );
    define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'child_header_image_height', 320 ) );
    ?>

    Or, if I only want to change the depth of the header image, would this work?

    <?php
    remove_filter( 'HEADER_IMAGE_HEIGHT', 'twentyeleven_header_image_height' );
    define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'child_header_image_height', 320 ) );
    ?>

    Any advice appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter adieu

    (@adieu)

    In case anyone searches and finds this post, I should say I did try the second code above, changing the header image to 1000 x 320 pixels and it worked perfectly.

Viewing 1 replies (of 1 total)
  • The topic ‘Yet another question about changing header image size!!!’ is closed to new replies.