• Resolved billydec

    (@billydec)


    I have checked the box to replace the header image with the featured image on pages.

    When I click a page with a featured image… the header image loads first then is replaced a millisecond later by the featured image. It looks kinda sloppy.

    This happens in both Safari and Chrome.

    Is it possible to have the featured image load without seeing it change from header to featured?

    Thanks,
    Billy

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Oliver Campion

    (@domainsupport)

    Hi Billy,

    This is because the JavaScript waits until the page has loaded before moving stuff about.

    Hiding the featured image with CSS might help … ?

    Can you try adding this to “Customiser -> Additional CSS”

    .single-featured-image-header {
    display: none;
    }

    Let me know if that makes a difference.

    Thanks,

    Oliver

    Thread Starter billydec

    (@billydec)

    Thanks for the quick response Oliver.

    unfortunately this didn’t seem to work.

    Do you have any other suggestions?

    Billy

    Plugin Author Oliver Campion

    (@domainsupport)

    I’ll have a think. Perhaps I can start the JavaScript before the page has finished loading. I’ll keep you posted.

    Oliver

    Plugin Author Oliver Campion

    (@domainsupport)

    Hi Billy,

    OK, I’ve just posted an update that doesn’t tell the JavaScript to wait until the page has loaded. I’ve also moved the JavaScript up the page.

    I’ve tested locally and most times you don’t see the flicker of the previous header image but occasionally you do.

    I don’t think you’re going to get better than this without preventing the original header image from being called in the first place (which creates a whole new set of problems haha).

    Let me know what you think.

    Thanks,

    Oliver

    Thread Starter billydec

    (@billydec)

    Oliver,

    Thank you for your quick attention! Seems to be doing the trick.

    Billy

    Plugin Author Oliver Campion

    (@domainsupport)

    That’s good news. Thanks Billy.

    Hi, I get no header, it shows in the backend when I select an image, if I use default image it shows, but my custom image or another image does not show, i even copied and pasted in photoshop in the default.jpg my custom but then it does not show http://www.acteventsplanner.com/pchroadhouse

    Plugin Author Oliver Campion

    (@domainsupport)

    Hi,

    The theme you are using on that link is Twenty Nineteen.

    We have a plugin and support forum for that theme as well.

    Please can you start a new thread there?

    Thank you,

    Oliver

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Featured Image replacing Header Image’ is closed to new replies.