Home > Shopify Tutorials > Embed a Twitter feed in your online store

How to embed a Twitter feed in your online store in Shopify

Last updated: August 01, 2024
Written and researched by experts at AvadaLearn more about our methodology

By Sam Nguyen

CEO Avada Commerce

If you’re using Twitter, you can inspire your customers from your online store in Shopify to follow your Twitter account by following this post. It provides you with the way to embed a Twitter feed in your online store easily. In other words, you can display your recent tweets on your website. With those interesting tweets, your customers must be really impressed and want to be your Twitter followers. You can take advantage of it to marketing effectively.

To edit a new product on Shopify

Step 1: Click on Twitter settings

In the first step, log in your Twitter account. Then, tap on your avatar and go to the Twitter settings by clicking on Settings and privacy.

Embed a Twitter feed in your online store

Step 2: Select Widget

Look at the left-hand side of the page, there is a menu. Make sure that you find the Widgets section in it. Next, press on it.

Embed a Twitter feed in your online store

Step 3: Create a new widget

In this step, select the link I’ve marked in the following picture to create a new widget. If you don’t know how to do it yet, it’s highly recommended that you should click the link called Learn more to follow the Twitter instruction to create a new widget.

Embed a Twitter feed in your online store

Step 4: Copy the code

I’ve created a new widget for my previous tweet. Now, just click Copy code.

Embed a Twitter feed in your online store

Step 5: Tap on Themes

Back to the Shopify and log in your account. Afterward, click Online Store and go to Themes.

Embed a Twitter feed in your online store

Step 6: Click Edit code

To select the theme you expect to embed the Twitter feed, press on Actions besides its name and click Edit code.

Embed a Twitter feed in your online store

Step 7: Choose theme.liquid

In the Layout directory, choose the file named theme.liquid.

Embed a Twitter feed in your online store

Step 8: Locate the widget

That locate the widget means you will put the code where you want your tweets to be displayed. Choose a nice spot by pointing to it. For example, I put it under the </head> tag.

Step 9: Paste the code

Now, paste the code you’ve just copied in the Twitter in the file.

Step 10: Press on Save

To complete what you’ve done, make sure to press on Save.

Summary

Above are some simple steps you can take to embed a Twitter feed in your online store. In addition, this instruction is written about how to do this on Desktop, iPhone, and Android so that you can choose the device which suits you the most to carry out. Hope you find it helpful and effortless to do.


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.