• Hi!

    I am using WP 3.01. and the Twenty Ten theme.

    I would like to replace the default Header Image (940 x 198) with an ANIMATED .GIF file (111 X 74).

    (1) Can I use an ANIMATED .GIF file in WP?

    (2) Esmi suggested making the following changes in functions.php:

    Define(‘header_image_width’, apply_filters(‘twentyten_header_image_width’, 940)); and Define(‘header_image_height’, apply_filters(‘twentyten_header_image_height’, 940));

    Then, Esmi suggested changing the container height in style.css.

    Why not the width too?

    (3) Will the image be centered?

    Thank you.

    Dr. T.

Viewing 1 replies (of 1 total)
  • It is recommended to make a child theme as any changes made on core twenty ten theme will over written every the you make update.

    You can add filter in your child theme to resize your header image

    add_filter('twentyten_header_image_height','my_header_height');
    add_filter('twentyten_header_image_width','my_header_width');
    function my_header_height($size){
       return 150;
    }
    function my_header_width($size){
       return 500;
    }

    This is a filter you can change the width and height as you want.

    I do not know about the gif file you could try and upload see if it works.

Viewing 1 replies (of 1 total)

The topic ‘Header Image: Animated .GIF File’ is closed to new replies.