Support » Themes and Templates » Move the menu closer to the header

  • Resolved montygothic



    The theme is 2010

    I am trying to achieve a reduced width on the header and a menu that sits under the header.

    My current work around shows about 30 pixels of white space in bottom of the header image that I need to crop in photoshop.

    Once this is croped I need to reduce the hight of the default 2010 header so when I upload the cropped header there wont be any black space. How do I do this?

    The menu as you can see when you click the link below may need moving up the page as well, so it sits under the header.

    Any help is welcom.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Create a child theme.
    Create an empty functions.php in the child theme
    Add the following to the new functions.php and change the header size you want

    // The height and width of your custom header. You can hook into the theme's own filters to change these values.
    	// Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values.
    	define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) );
    	define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) );


    I’ll give this a try, thanks for your minutes and seconds.

    I forgot to mention you will need to reload your header for the child theme (so each child theme can have a different header, if desired)

    Hi @namklim,

    Thanks again for the comming back to me, I tried this and it worked! for 5 mins and then I refreshed and ecountered

    Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\6390919\html\microsite\wp-includes\default-embeds.php on line 22

    I have kept the child theme and made the header bigger. I guess I ultimately want to change the header deault from 940 × 198 to maybe 940 × 140

    Any help is appreciated.

    If you haven’t changed it, line 22 of default-embeds.php is:
    function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {
    so is to do with embedding video. It looks as though you’ve got a problem elsewhere.


    Thanks again for your answrs, I’ll look into the problem, seems like a one off.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Move the menu closer to the header’ is closed to new replies.