• Alison

    (@anonymical7)


    Hello, I want to make the header have a larger width, I increased the height in the custom-header.php but it is not adjusting to the 480px height when I upload the correct image size. Anyone out there that can tell me what I am doing wrong?

    This is what it looks like now.

    // Set height and width, with a maximum value for the width.
    ‘height’ => 480,
    ‘width’ => 960,
    ‘max-width’ => 2000,

    Still it is not showing up correctly.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You could try adding this CSS to the Additional CSS panel of the customizer:

    header.site-header, img.size-full, img.size-large, img.header-image, img.wp-post-image {
        max-width: 2000px;
        height: auto;
        width: 100%;
    }

    I don’t know why your header code didn’t have the desired effect, this is just a cheap workaround. The ultimate size is still constrained by the page container that it’s within. If you want it to be wider than this, the template HTML really needs to be restructured. You could instead try playing with negative margin CSS to get it to overrun the page container, but it’s not a very good solution.

    Be sure whatever you end up with still works on smaller screen sizes. More CSS within media queries may be needed.

Viewing 1 replies (of 1 total)
  • The topic ‘Edit twenty twelve header height?’ is closed to new replies.