Topic summary
Raw JavaScript was visibly rendering on a page because part of a script was placed outside the script tag in a Shopify theme file.
- Diagnosis: The stray code wasn’t a CSS issue; it was JavaScript outside the script tag. It was first suspected in theme.liquid, then located in page.distributormenu.liquid.
- Fix recommended: Do not delete the code. Move the line inside the existing script block—specifically place it before the closing script tag to prevent it from appearing on the site.
- Outcome: The change was implemented and the issue was resolved.
Notes:
- “Script tag” refers to the HTML element that wraps JavaScript so it executes rather than displaying as text.
- theme.liquid and page.distributormenu.liquid are Shopify theme/template files where the misplaced code was found.
- Screenshots were shared to show the code location and confirm the fix.
Status: Resolved; no further action requested.
Hello @EPAS
It looks like some script is out of the Script tag, do you know which part of the code you have edited or added from your side? if yes then in the same file at the end you have to keep that code in the script tag, check the screen shot below.
Let me know if you want me to help you on that.
Thank you
@EPAS i think it’s out of the script tag that’s why it’s showing own the site . i think it’s coming from theme.liquid file can you check in it
@Ujjaval I found it under page.distributormenu.liquid, do I just delete it?
@EPAS nah , add above tag that line
@Ujjaval Thanks!
@Huptech-Web I was able to find and correct it thank you!!



