Social Media Icons in header for Dawn Theme

Topic summary

Adding social media icons to the Shopify Dawn theme header and how to implement them.

  • Initial request: code solution to display social icons in the header.

  • Suggestions: check Dawn’s theme customizer for built‑in social icons; a YouTube tutorial link was shared.

  • Implementation: a custom Liquid snippet was provided to insert a social icon list into announcement-bar.liquid (Shopify’s theme file for the top announcement bar). It uses settings.social_* links and render ‘icon-*’ snippets for Twitter, Facebook, Pinterest, Instagram, TikTok, Tumblr, Snapchat, YouTube, and Vimeo. Images show the resulting icons.

  • Outcome: a user successfully added the icons, confirming they appear.

  • Follow-up requests:
    • Reduce the header’s increased height/width after adding the icons (likely requires CSS adjustments).
    • Make each social link open in a new tab (e.g., target=“_blank” and rel=“noopener”).

  • Status: no posted fixes yet for sizing or new-tab behavior; discussion remains open.

  • Notes: The code snippet and images are central to understanding the solution; Liquid refers to Shopify’s templating language, and Dawn is Shopify’s default theme.

Summarized with AI on February 10. AI used: gpt-5.

Can someone please help me with the code to display social media icons in the header of Dawn theme.

@anujmep
Might be Dawn theme has this default functionality, in theme customizer

@anujmep May this help you. Click Here.

Hello @anujmep ,

We can fix this issue with the help of a custom code.

You need to update this code in the announcement-bar.liquid file.

Refer to the below-provided image.

image.png

Here, in the below image you can see the output in the below image, after adding the code to your announcement-bar.liquid file.

Hope it helps. Reach out to us if you have any further questions.

All the best,

CedCommerce

Hi, @anujmep

I added social icons to the header following your custom code. Thanks. I’ve been looking all over for a solution. Can you assist me with two additional code adjustments? The code made the header wider. How can I reduce the size? Also, how can I get each social link to open in a new tab instead of directing customers away from the website? https://www.melanincrown.com

Hi, @Cedcommerce

I added social icons to the header following your custom code. Thanks. I’ve been looking all over for a solution. Can you assist me with two additional code adjustments? The code made the header wider. How can I reduce the size? Also, how can I get each social link to open in a new tab instead of directing customers away from the website? https://www.melanincrown.com