WordPress.org

Ready to get started?Download WordPress

Forums

Brunelleschi
[resolved] Brunelleschi Header Image Height (4 posts)

  1. Hazlo
    Member
    Posted 1 year ago #

    Hello,

    After trying many times without success I'd like to ask (maybe to Kit if he still has a bit free time?) how to increase the height of the header image in Brunelleschi theme.
    I tried the following code in the functions.php of my child theme (found it here)
    <?php

    function brunelleschi_child_filter_header_image_height( $height ) {
    // set equal whatever height you want;
    // e.g. for 300px, use 300
    $new_height = 330;
    // now return it
    return $new_height;
    }
    add_filter( 'brunelleschi_header_image_height', 'brunelleschi_child_filter_header_image_height' );

    It works when uploading a new image with the new size (in my case 1140px x 394px) but then when I empty my browser cache and come back to my site, it switches back to a cropped image.
    So I've put again my ancient header images until someone can help me in fixing this issue.
    Any Idea?
    Here is my site.
    Thx a lot.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    There may be other problems, but one possible issue is that you have the max-width for #wrapper set to 865px in this CSS:

    #wrapper {
        color: #FF4B33;
        max-width: 865px !important;
    }

    I see that you have another CSS declaration:

    #wrapper { max-width: 1140px !important;
    			 }

    But the first one is taking precedence as it's later in the internal CSS code.

  3. Hazlo
    Member
    Posted 1 year ago #

    Oh yes the 1140px width is a preset (from the theme), and the 865px is the width I choose (I wrote it in the css customization box).
    So I'll try to upload new header images with the right width (865px) and the new height I want (394px).
    I'll post the result here when it will be done.
    Thanks a lot WPyogi for helping.

  4. Hazlo
    Member
    Posted 1 year ago #

    @WPyogi : Your help was useful. There was a conflict between the preset wrapper size and the customization I made. Now it works fine. Thanks again.
    A very happy new year to you and to everyone here.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic