• Resolved kyls

    (@kyls)


    Hi, I am currently using Twenty Eleven with a child theme and would like to have different header images for each static page.

    The height dimensions for the ‘featured image’ don’t work for my site – it’s not high enough.

    Can I either change the height of the ‘featured image’ (which seems it would be easiest) or can I have a different header image on each page?

Viewing 13 replies - 1 through 13 (of 13 total)
  • See Resize the Header in a Twenty Eleven Child Theme. You can use the same method in your child theme for the header height.

    Thread Starter kyls

    (@kyls)

    Hi esmi, I have the header height correct, just not sure how to have a different header image for each static page?

    Set a different featured image of the correct dimensions for each page.

    Thread Starter kyls

    (@kyls)

    Yes that is what I would prefer to do, however I am unsure where change the code height for the featured image in the child theme.
    I need the height of the featured image to be 350px.

    See the page I linked to above.

    Thread Starter kyls

    (@kyls)

    Hi Esmi, I thought the only file you shouldn’t copy to the child theme was the functions.php.

    Anyways the link you provided shows how to change the height of the image header, which I have said I have already done.

    What I need help with is one of the following:

    1. How to change the height of the ‘featured image’ in the child theme;
    OR
    2. How to have a different header image on each static page.

    By getting one of these options to work – I will have achieved what I was after… a different image on each page with a height of 350px.

    I thought the only file you shouldn’t copy to the child theme was the functions.php.

    You don’t copy the file. You create a new functions.php file in the child theme that just contains your custom functions.

    the link you provided shows how to change the height of the image header

    Twenty eleven uses the featured image as the page header if an image with the correct dimensions is chosen.

    Thread Starter kyls

    (@kyls)

    Are, thank you for clarifying the functions.php file in the child theme – that makes sense now.

    With the featured image I have saved the image with the same dimensions as I am using for the homepage header image 1000px (wide) x 350px (high), however the default settings for a custom size featured image automatically cut the height down 288px – do you know if there is somewhere in the functions.php file that I can reference and modify and increase the height of the custom featured image?

    Did you set up the new header height in the child’s functions.php file?

    As often when asking two (2) questions at once – there is no answer at all. So I am focusing on one question

    Question: Can I have a different header image on every static page that is NOT part of the set of random images shown on the blog post pages?
    (Twentyeleven / WP 3.4.1)

    I tried setting “Featured Image” but nothing happens.

    – resolved –
    In order for the image to show as header it has to be 1000 * 288 pix

    Can I have a different header image on every static page that is NOT part of the set of random images shown on the blog post pages?

    Yes.

    Thread Starter kyls

    (@kyls)

    esmi – you are wonderful and have answered my question!!
    I had didn’t have the height for the header image in the childs theme functions.php file.
    Once I corrected this, the featured image automatically changed it custom size to match the header image.
    Thank you so much!!

    Glad to hear that you finally got it sorted. ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Can I either change height of featured image or have a different header images’ is closed to new replies.