How can I add social media icons to my store's header?

Hi all,

I’ve looked around, but all the answers seem specific to people’s stores, so I thought I would ask here.

I want to add the Social media icons and links to the header of my store (https://mintlays.com). Ideally they would be below the announcement banners on the right hand-side.

Thanks in advance

Hi @fardamintlays ,

You can go to Online Store → Themes → Theme Actions → Edit Code.

In the online code editor, open sections/header.liquid file.

Search the following line in the file:

After this line, add the following code.

{% render ‘icon-facebook’ %}
{% render ‘icon-instagram’ %}

Or this code:

{% render ‘icon-facebook’ %}
{% render ‘icon-pinterest’ %}

{% render ‘icon-twitter’ %}

{% render ‘icon-instagram’ %}

I hope this helps.

Hello, @fardamintlays ,

To fix this issue you need to paste the below-provided code in your “sections/header.liquid”

Here are the steps to do this:

Go to your Shopify admin > online store

Select theme > Click on Actions > Edit code

Open header.liquid file and paste this code before {% schema %}

image.png

Code:-

Let us know if it works, or if you need further help from us.

All the best,

Team CedCommerce

Hi - Thanks for this, works fine.

How do I make all of the social media links in the header and footer open in a new tab/window?