WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Move the menu closer to the header (7 posts)

  1. montygothic
    Member
    Posted 3 years ago #

    Hi,

    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.

    http://bit.ly/9ri2Kt

  2. namklim
    Member
    Posted 3 years ago #

    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 ) );
  3. montygothic
    Member
    Posted 3 years ago #

    @namklim,

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

  4. namklim
    Member
    Posted 3 years ago #

    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)

  5. montygothic
    Member
    Posted 3 years ago #

    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.

  6. namklim
    Member
    Posted 3 years ago #

    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.

  7. montygothic
    Member
    Posted 3 years ago #

    @namklim

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

Topic Closed

This topic has been closed to new replies.

About this Topic