Add TikTok Icon to Social Media Icons in Footer for Split Theme in Shopify

  1. In the backend click on Online Store.
  2. Beside your live theme, click the Actions button -> Edit Code
  3. Scroll down the sidebar to the Config section and click on settings_schema.json
  4. Once loaded, scroll down to the social media section
  5. Add a section here for tiktok. This will make the input field appear in the theme settings:
            "type": "text",
            "id": "social_tiktok",
            "label": "TikTok",
            "info": "https:\/\/"


    This is where I chose to insert it:

    Click on Save when you are done.

  6. Under Snippets, open up social-icons.liquid
  7. Find the spot in the code where you want to put the tiktok icon. You will want to consider that where you put the code will affect the order of the icons on the front end. Paste this code for the TikTok icon:

      	{%- if settings.social_tiktok != '' -%}
    		<a href="{{ settings.social_tiktok | escape }}" target="_blank" aria-label="Tiktok"><span class="icon {{ size }}" aria-hidden="true">{% render 'theme-symbols', icon: 'social_tiktok' %}</span></a>
    	{% endif %}

  8. Now you will need to add the TikTok icon itself. Under Snippets, click on theme-symbols.liquid
  9. Paste this code into the file:

    {%- elsif icon == 'social_tiktok' -%}
    <svg version="1.1" id="Capa_1" xmlns="" xmlns:xlink="" x="0px" y="0px"
    	 viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
    	<path class="st0" d="M480.3,128.4c-29.2,0-56.2-9.7-77.8-26c-24.8-18.7-42.7-46.2-49-77.8c-1.6-7.8-2.4-15.9-2.5-24.2h-83.5v228.1

    You can replace the svg code above with the code for any svg you want to use to represent the TikTok icon.

    Make sure you paste it before the endif tag. This is where I pasted it in my file:

    Click Save when you are done.

  10. Now all you need to do is go add the URL in the front end. Click on Online Store in the side menu
  11. Beside the Live Theme, click on the Customize Button.
  12. In the left side menu click on “Theme Settings” at the very bottom
  13. On the right side of the screen click on “Social Media” under Theme Settings and expand the options.
  14. Find the TikTok text input field and enter the URL for the TikTok account.
  15. Click on Save.
  16. Your TikTok icon should now be live!


Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha loading...