HELP: Twenty Eleven Custom Header Settings (7 posts)

  1. iRJscott
    Posted 5 years ago #

    Hello, This is my first post and I am hoping somebody here can help me out.

    I would like to modify the Twenty Eleven header to my specs.

    First off I'd like to lower the overall height of the header area to about 200px or so.

    I am planning on running a 728x90 ad on the right portion of the header and using the remaining space on the left I will be placing a small site logo of about 230x90

    I know this is the easiest adjustment in Twenty Ten, but I can't seem to figure out how to do this using the new theme.

    I want to keep the code simple and clean so if you can help me out I'd really appreciate it.

    Thanks! -iRJ

  2. esmi
    Forum Moderator
    Posted 5 years 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 customisations. Once your child theme is active, we should be able to help with the customisation.

  3. iRJscott
    Posted 5 years ago #


    Alright I re installed the twenty eleven theme untouched so I have access to an unedited version. I'll have to learn child themes real quick and then set that up.

    Can you help me out with the header style I am looking to setup?


  4. esmi
    Forum Moderator
    Posted 5 years ago #

    Try adding:

    add_filter( 'twentyeleven_header_image_height', 'my_image_height' );
    function my_image_height ($height) {
    	$height= 200;
    	return $height;

    to your child's functions.php file.


  5. iRJscott
    Posted 5 years ago #

    What else do I need to change in the functions.php file before adding it to the child directory?

    I have the template and style.css files and they are working perfect. If I add the same functions.php file from the parent to the child directory it throws and error and will not load the site.


  6. iRJscott
    Posted 5 years ago #


    Here is a ps rendering of what I'm trying to achieve with my header...Thanks for all your help thus far!


  7. esmi
    Forum Moderator
    Posted 5 years ago #

    Your child's functions.php file should just contain the function I gave above at this point.

Topic Closed

This topic has been closed to new replies.

About this Topic