How to add code to blog image for RSS feed via Mailchimp

How to add code to blog image for RSS feed via Mailchimp

PartsbyNC
Tourist
7 0 3

I'm trying to set up an automated email with Mailchimp which would (hopefully) send out a weekly email with the RSS feed from my shopify blog. I've gotten most of it figured out, but I'm unable to get the blog post images to appear.

 

I asked tech support at Mailchimp and they said I had to add some HTML code to my blog post images so that Mailchimp would know to read and transfer over the images.

 

From their help page it says:

To help ensure that Mailchimp can view your feed's images, you can include medium or type information inside the <media:content> tag.
Examples:
<media:content url="http://pottedplanter.com/example.jpg" medium="image">
<media:content url="http://pottedplanter.com/example.jpg" type="image/jpg">

I've been messing around with my Shopify code, but I still can't seem to figure out how to do this?

Could someone please give me a step by step walk though?

Replies 3 (3)

sahilsharma9515
Shopify Partner
1270 165 246

Hi @PartsbyNC You need to add the media in your blog through this tag.

First you need to upload the image in the shopify cdn and then add the HTML tag over the blog post and add the URL of your image that you have added in the shopify CDN.

 

If you are wondering how to add the tag and where to add the tag.

 

Click on the highlighted button in the blogpost in shopify:

sahilsharma9515_0-1716442041755.png

once clicked you will get the HTML code and you need to add the above code in there.

 

If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


PartsbyNC
Tourist
7 0 3

Thank you for your response, but this won't work in my case. Adding the image to the content area only will remove it from all blog previews. And if I add the image to both the content and where I usually add the image so it shows up for the preview then the image shows twice on the blog post page.

sahilsharma9515
Shopify Partner
1270 165 246

Hi @PartsbyNC if section option is working for you then add the inline css to one of the media.

 

<media:content url="http://pottedplanter.com/example.jpg" medium="image" style="display: none;">

 

This is how it will look alike and you will get your desired result.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️