Shopify RSS Feed

Alberto Cubeddu
3 min readAug 8, 2023
Photo by Alesia Kazantceva on Unsplash

Shopify automatically generates an RSS feed for you, but it’s limited to the blog section of your website.

To access the RSS feed, replace yourwebsite.com it with the actual URL of your Shopify store.

https://yourwebsite.com/blogs/article.atom
e.g.
https://modelsandsurf.com.au/blogs/article.atom

How to create RSS Feed for any other section

If you’re wondering how to serve RSS feeds for other sections of your website, follow the guide, where you will learn how to create a custom template, apply it to a page and provide RSS feeds from any section.

Limitation

As Shopify is a SaaS product, at the moment of writing, there is no possibility to change the header content-type; Therefore, even if you can display a correct RSS feed, some readers will reject it.

Create the RSS template (liquid)

Create a new template:

  • Go to Shopify Admin.
  • Navigate to Online Store > Themes.
  • Find the theme you want to edit, click Actions, then Edit code.
  • In the “Templates” directory, click Add a new template.
  • Create a template of the type page and name it something like rss.

Edit the template:

  • In the code editor, open the new template (page.rss.liquid or similar).
  • Clear any existing content and paste it into a structure that will loop through pages with the specified meta field and output the desired details.
{% layout none %}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Your Store Name - Pages</title>
<link>https://yourstorename.myshopify.com</link>
<description>Description of your store or RSS feed</description>
<atom:link href="https://yourstorename.myshopify.com/pages/rss" rel="self" type="application/rss+xml" />
{% for page in pages %}
<item>
<title>{{ page.title }}</title>
<link>https://yourstorename.myshopify.com{{ page.url }}</link>
<description>{{ page.content | escape }}</description>
<pubDate>{{ page.created_at | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>…

--

--

Alberto Cubeddu

Leadership || Management || Innovation - Technology Director & Former Head Of Engineering