How to fix missing script tags in Shopify coding

How To Fix Missing ScriptTag Support In Your Shopify Theme

Have you ever found that some Shopify Apps simply don’t work as they should with your theme? Well, follow this guide and see if your theme is missing ScriptTag support, which are needed for a lot of Apps to function correctly. Before jumping into the fix, please take the time to figure out if your theme is missing support or not.

What Are ScriptTags?

ScriptTags are a standard Shopify feature which allows third-party Apps to easily install javascript code into your Shopify Store. The great thing about ScriptTags is that they’re automatically removed when you uninstall the App that installed them, so there’s no messy code clean up you’ll need to do compared to Apps that require theme patching to work.

Does Your Theme Have a Problem?

Checking if your theme lacks ScriptTag support is easy! Follow these steps to figure it out:

  1. Click this link to open up your theme.liquid file.
  2. Find the <head> tag in the code editor (see the top of the image below).
  3. Find the </head> tag in the code editor (see the bottom of the image below).
  4. If you cannot find {{ content_for_header }} between <head> and </head>, your theme is missing ScriptTag support!

Fix Shopify Theme missing ScriptTag Support

How To Fix Missing ScriptTag Support

Fixing missing ScriptTag support is even easier than checking if it’s missing in the first place. Follow these steps to solve the problem:

  1. Click this link to open up your theme.liquid file.
  2. Find the </head> tag in the code editor (see the bottom of the image).
  3. Copy/paste the content below before the </head> tag (see red box in the image)
    {{ content_for_head }}
  4. Click the save button.
  5. You’re done!

Fix Shopify Theme missing ScriptTag Support

If you have questions or need help, get in contact with us we have a friendly dedicated support team.

>