Featured image background using the Looper

Hello there,

I am loading a single recent post into a column using the Looper.

I have assigned a featured image to the background of the column using {{dc:post:featured_image_id}}

However, the image appears to be cropped into a tiny square in the Global Blocks builder, but the image is replaced by the website logo on the frontend. Any idea what I am doing wrong here?

Kind Regards,

Spencer

Hello @finkk,

Thanks for writing to us.

You can set the featured image size in the dynamic content {{dc:post:featured_image_id size="medium"}} .

In Pro 4 and Cornerstone 5, we have a way to apply a thumbnail size in some cases but it’s a bit of a workaround.

  • Under preferences, enable the Dev Console.
  • Inspect an Image element and open the console
  • Look for image_source and enter {{dc:post:featured_image_id size="medium"}} That size attribute accepts any thumbnail size and will default to full if not set.

This should work for any of the image controls in the builder but because it is just retrieving the attachment ID you can use it for any inline <img> tags that you add directly to your content.

If it doesn’t work for you, please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Hope it helps
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.