Forums

Can't get my header to resize (3 posts)

  1. Nick.Langford
    Member
    Posted 6 months ago #

    Hi,

    I have looked through the posts for a few hours and nothing that I tried worked.

    What I have so far is that in the admin panel it shows the correct size but on the front end it's squishing it to the orinal size of 940 by 198.

    I changed this code to the correct size

    define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 973 ) );
    	define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 297 ) );

    I even tried this but I don't know if I was putting it in the right place

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

    I have also tried looking for it the style.css but found nothing useful.

    If any one could point me in the right direction it would be a great help.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes.

    See this article for details on how to resize the header image in a child of Twenty Eleven.

  3. Nick.Langford
    Member
    Posted 6 months ago #

    Thanks, worked great

Reply

You must log in to post.

About this Topic