• Resolved 2wav

    (@2wav)


    We are using a grid layout with a very simple item template, which contains a feature image with a couple elements tied to a post title and custom field.

    In the layout editor we see the feature images, in the rendered page we see only empty divs.

    In the layout editor the image appears to be applied to the div as a background-image style.
    <div class=”cl-element-featured_media__image” style=”border-width: 0px; font-weight: normal; font-style: normal; text-decoration: none; background-image: url("https://illinoispollinators.org/wp-content/uploads/2022/07/Buttonbush-150×150.jpg&quot;); background-position: center center; background-repeat: no-repeat;” alt=”Featured Image (preview)”></div>

    In the rendered page, there is no such style attribute.
    <div class=”cl-element-featured_media__image” role=”img”></div>

    If I manually apply the style attribute using the inspector then the image appears.

    Can anyone suggest what we need to do to get images to appear?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Code Amp

    (@codeamp)

    Hey @2wav

    We had this issue come up months ago but it seemed to have resolved itself on a users site.

    My guess is an error is being generated instead of showing the image.

    Can you try enable WP_DEBUG and WP_DEBUG_LOG and check if there is an error being thrown there?

    Debugging in WordPress

    Not sure if anything from this ticket will help but Keryn did find a way to get the image to show (and which setting caused it to fail):
    https://www.ads-software.com/support/topic/featured-images-not-showing-34/#post-15261788

    Perhaps you can enable that in the meantime while we track down this issue?

    FYI, I’m away until Monday next week (and will no doubt have a backlog of support to get back on top of) but will try to get back to you asap.

    Thanks

    Thread Starter 2wav

    (@2wav)

    Thanks @codeamp!
    Keryn’s fix worked for us too. I’m new to this forum and might have found that previous post myself if I’d looked a little harder. I would like to give you the debug output you’ve requested, but it isn’t easy for me to enable WP_DEBUG or to get at the output on this particular site, and I’m afraid it may not be throwing errors now that everything is working. If I can get that output for you I will post here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature images not showing’ is closed to new replies.