Support » Fixing WordPress » Twenty Seventeen Header Image Inconsistent Display

  • Resolved MurnaghanAP

    (@murnaghanap)


    Hi.
    The twenty seventeen default theme header image appears to get cropped inconsistently in different browsers. This causes a big problem deploying a consistent header image for a site across the popular browsers.

    In Chrome and Firefox the header image on pages in a site is cropped around the centre of the image, however when displayed in ie11 and Edge the crop is from the bottom edge of the image.

    This can be well illustrated in my site http://www.lintmanarchery.org. Viewed in Chrome and Firefox the image works well in the cropped form, but in Edge and ie11 the image is unrecognisable.

    Could this be fixed in the next release (how do I get it on the list?) and in the meantime is a there a coding work around I could use?

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Twenty Seventeen is used by thousands of people (including myself) and this is the first instance I have heard of a problem.

    The image size in FF is 525×314 and in Chrome is 1000×600 yet in your source code the image is sized at img src="https://lintmanarchery.org/wp-content/uploads/2017/01/Website-Header-2017.jpg" width="2000" height="1199" alt="Lintman Archery Club" srcset="https://lintmanarchery.org/wp-content/uploads/2017/01/Website-Header-2017.jpg 2000w, https://lintmanarchery.org/wp-content/uploads/2017/01/Website-Header-2017-300x180.jpg 300w, https://lintmanarchery.org/wp-content/uploads/2017/01/Website-Header-2017-768x460.jpg 768w, https://lintmanarchery.org/wp-content/uploads/2017/01/Website-Header-2017-1024x614.jpg 1024w" sizes="100vw" /></div> </div>

    Not sure what is going on. I’ll check some things and respond.

    How are you adding the header image? I should see wpCustomizeHeader in the code but I don’t. Are you using dashboard>>apperance>>customize?

    OK. Disregard all I said before. Our code is the same except for width where you have 1199 and I have 1200 yet mine works fine.

    The only difference I see is plugins and you don’t have too many. Have you tried:
    -deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    Thread Starter MurnaghanAP

    (@murnaghanap)

    Hi.
    Yes the image was installed using the dashboard > apperance > customise. The image file is 2000×1199.
    I am testing the plugins deactivated now in my test environment. I’ll update shortly.

    Thread Starter MurnaghanAP

    (@murnaghanap)

    Hi,
    I have deactivated all the plugins on my test environment and still get the same result. You can visit this clean version at http://lintmantest.murnaghan.com/club-news.
    I hope this helps to narrow down the issue.
    Please also see a response I received to a previous post in the twentyseventeen forum: –
    https://wordpress.org/support/topic/page-header-image-changes-with-browser/#post-9024022 which suggests I am not alone…

    Jez, I totally blew this one. Once you start in the wrong direction it is hard to recover.

    That is expected behavior for the theme.
    https://wordpress.org/support/topic/twenty-seventeen-header-image-not-shown-correct/

    Thread Starter MurnaghanAP

    (@murnaghanap)

    Hi Thanks for the link.
    Unfortunately this solution doesn’t address the specific issue relating to how the cropping works differently on different browsers.
    The work around in the other thread just stops the header image from being cropped on pages and is displayed full size.
    I am looking for how to recreate the image crop seen when viewing using Chrome on the Microsoft browsers – ie 11 and Edge. I want to see the thinner header image on the sub pages within the theme.
    It is not an issue on mobiles and tablets but on large PC screens.
    Apologies – I didn’t mean to cause a duplication across the forums – I wasn’t sure how to get help. This is quite frustrating for me as I am only learning…
    I do appreciate any help you can give me.

    • This reply was modified 5 years, 7 months ago by MurnaghanAP.
    • This reply was modified 5 years, 7 months ago by MurnaghanAP.
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @murnaghanap, You didn’t create a duplicate thread. You did the right thing, you opened a new thread to discuss your issue.

    Edit: Oh nevermind I saw your duplicate thread.

    You’re seeing an inconsistent display because Twenty Seventeen uses the ‘object-fit’ style on the header image. This style just isn’t supported by IE11.
    http://caniuse.com/#search=object-fit

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you’re not afraid to get your hands dirty, you can install a polyfill: https://github.com/anselmh/object-fit

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    To be clear, this is not a bug. The theme is using cutting-edge CSS techniques and some browsers aren’t up to date yet.

    If you are to use a polyfill then just be aware of the compromise. The compromise is performance.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This is wrong, we shouldn’t be posting in this thread. This thread is not in the theme’s support section. Please now continue this discussion on your other thread: https://wordpress.org/support/topic/page-header-image-changes-with-browser/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Twenty Seventeen Header Image Inconsistent Display’ is closed to new replies.