We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Add Social Media Icons to Desktop Header in Spotlight Theme

Solved

Add Social Media Icons to Desktop Header in Spotlight Theme

alexajasmin
Shopify Partner
3 0 3

Hi, I need to add the social media icons to the header only on desktop. They're already showing in the footer and in the menu on mobile. I'm using the Spotlight theme.

Accepted Solution (1)

devcoders
Shopify Partner
1654 190 564

This is an accepted solution.

Hello @alexajasmin 

1. Find Your Header File
Go to Online Store > Themes > Actions > Edit code

Open this file:

sections/header.liquid

 

2. Insert the Social Icons Code

Find a good spot inside the header — usually near the header__icons or header__inline-menu container.

Paste this snippet where you want the icons to appear only on desktop:

<div class="header__social-icons medium-up">
  {% render 'social-icons' %}
</div>


If positioning or spacing looks off, you can tweak it in base.css or theme.css (under Assets):

.header__social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto; /* Optional: push to right */
}



Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 4 (4)

devcoders
Shopify Partner
1654 190 564

This is an accepted solution.

Hello @alexajasmin 

1. Find Your Header File
Go to Online Store > Themes > Actions > Edit code

Open this file:

sections/header.liquid

 

2. Insert the Social Icons Code

Find a good spot inside the header — usually near the header__icons or header__inline-menu container.

Paste this snippet where you want the icons to appear only on desktop:

<div class="header__social-icons medium-up">
  {% render 'social-icons' %}
</div>


If positioning or spacing looks off, you can tweak it in base.css or theme.css (under Assets):

.header__social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto; /* Optional: push to right */
}



Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
alexajasmin
Shopify Partner
3 0 3

Hi Devcoders, thank you for your reply! I have the icons where I want them on desktop but I do not want them to show on mobile. 

devcoders
Shopify Partner
1654 190 564

Hello @alexajasmin 
Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

TheScriptFlow
Excursionist
45 1 3

Hey Alex,

Hope you are doing great. In order to show the social icons on the header you need to follow the steps that shared by @devcoders.

If you facing the issue while implementing this then could you please share the store url so that I can take look.

Thanks

- Need a Shopify Specialist? Chat on WhatsApp Or Email at info@thescriptflow.com
- For any custom section queries, bug fixing please visit: Level 2 Fiverr Profile
- Buy Me a Coffee? Nah… Let’s Upgrade to a Car
- If my solution was helpful, mark it as a solution and hit the like button!