How to Add Your Own Social Media Icons

A free guide on how to add Discord, Telegram, or LinkedIn icons to the settings section of the Shopify Dawn theme.

Relevant for Dawn theme version 15.3.0


circle-info

If you want to avoid coding, try the Shrinearrow-up-right theme.

Shrinearrow-up-right offers over 120 built-in features that help improve conversion rates and increase the average order value, without the need to configure additional apps or pay for subscriptions. Everything is customizable without code, saving you time and resources.

torii-gateUse Shrine โˆ’ 15% OFF

Your discount code: VECOMLAB

1. Prepare the Icon in SVG Format

Go to Figmaarrow-up-right and download the icon in SVG format.

2. Go to the code editor

Online Store โ†’ Themes โ†’ Edit code.

3. Upload the SVG Icon to the assets Folder

Make sure the file is named icon-discord.svg

Once uploaded, the image code will look something like this:

Youโ€™ll need to edit the SVG code to match the themeโ€™s style (color, size, animation). To do this:

  1. Remove the width="264" and height="200" attributes โ€” these set fixed dimensions and may break responsiveness.

  2. Add the attribute class="icon icon-discord" โ€” this ensures the icon uses the shared social media icon styles.

  3. Remove fill="none" and immediately after the <path tag, add fill="currentColor" โ€” this lets the icon automatically adapt to the parent elementโ€™s color.

Updated SVG Code (copy and paste this into Shopify, replacing the original code):

4. Open the social-icons.liquid File in the snippets Folder

Paste the following code before the </ul> tag and save the changes:

5. Open the settings_schema.json File in the config Folder

In the file, locate the following line:

Next, find the block "settings": [ โ€” this array contains all available social media platforms.

Paste your code at the end of the list, just before the closing bracket ].

triangle-exclamation

6. Open the en.default.json File in the locales Folder

Find the first occurrence of the "links": { block โ€” this is where all available social media platforms are listed.

Inside this block, you'll see entries for each platform.

Insert the following line:

triangle-exclamation

7. Open the en.default.schema.json File in the locales Folder

Find the following block in the file:

Paste the following code:

triangle-exclamation

8. Open the Theme Settings

Go to Theme settings โ†’ Social media โ†’ Discord.

Add the link to your Discord server and save the changes.

9. Open the header.liquid File in the sections Folder

You might encounter an issue where the new icon doesnโ€™t appear in the site header.

To fix this:

  1. Find the line that starts with:

  1. At the end of this line, add the following code:

  1. Then, find the line:

  1. Insert the following code after that line:

  1. Finally, save the changes.

10. Open the header-drawer.liquid File in the sections Folder

You might also encounter an issue where the new icon doesnโ€™t appear in the mobile version of the site โ€” specifically in the menu that opens when clicking the hamburger icon.

To fix this:

  1. Find the following line in the file:

  1. Insert the following code before the closing </ul> tag:

  1. Save the changes.

Your new icon is now successfully added to the site.

FAQs

chevron-rightHow can I add other icons?hashtag

You can do it in the same way. Simply replace discord or Discord with the name of the social media platform you want to add in the corresponding parts of the code.


Need help with setup? Contact usarrow-up-right โ€” weโ€™ll handle everything for you.

Last updated