WordPress.org

Support

Support » Themes and Templates » HELP: Twenty Eleven Custom Header Settings

HELP: Twenty Eleven Custom Header Settings

  • 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 728×90 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 230×90

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    @esmi

    Forum Moderator

    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.

    @esmi

    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?

    Thanks!

    esmi

    @esmi

    Forum Moderator

    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.

    [EDITED]

    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.

    Thanks.

    @esmi

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

    View post on imgur.com

    esmi

    @esmi

    Forum Moderator

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘HELP: Twenty Eleven Custom Header Settings’ is closed to new replies.
Skip to toolbar