CMS Development

cpburke
Colaborador(a)

Rss email - Displaying Featured Image as background image

I am trying to create a custom email module that will pull the background image from the latest blog post and display it as a background image.

 

I was able to get the blog post title and "read more" text/links to display in the module, but have not been able to pull the actual featured image url. In Chrome developer tools, the CSS read something like background: url('unknown').

 

What is the correct value/snippet to include in my custom email module so it will pull the url of the featured image associated with the latest blog post? Is this even possible? 

0 Avaliação positiva
2 Respostas 2
jennysowyrda
Gerente da Comunidade
Gerente da Comunidade

Rss email - Displaying Featured Image as background image

Hi @cpburke,

 

Are you looking to just pull in the image, or make the image the background of the email? 

 

The developer docs discuss how to pull in a featured image. I am not familiar with a feature that would enable the image to become the background of the email body.

 

Thank you,
Jenny

0 Avaliação positiva
cpburke
Colaborador(a)

Rss email - Displaying Featured Image as background image

I just wanted to pull the image into a body or header group, not the entire template. I still haven't been able to get it to work, though.

0 Avaliação positiva