Can anyone help with this on my second website www.fuzzkit.nz
Theme is Refresh
class=“gradient”>
It’s sitting above my afterpay banner
A user is experiencing an issue with unusual code appearing in the header of their website (www.fuzzkit.nz), which uses the Refresh theme.
The Problem:
class="gradient" is visibleCurrent Status:
Can anyone help with this on my second website www.fuzzkit.nz
Theme is Refresh
class=“gradient”>
It’s sitting above my afterpay banner
Thanks for that, it’s not actually in the announcement bar as I haven’t got it showing at the moment.
The piece of code you’re looking to fix must be somewhere around here.
Somebody has pasted GTAG code in the middle of the body tag!
Original code (same in all Dawn family themes):
Your site:
See how <body tag start, but then there is GTAG code and then class="gradient"> continues?
<body
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N23CLTSR"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
class="gradient">
<a class="skip-to-content-link button visually-hidden" href="#MainContent">
Skip to content
</a>
Need to make it like this:
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N23CLTSR" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<a class="skip-to-content-link button visually-hidden" href="#MainContent">
{{ 'accessibility.skip_to_text' | t }}
</a>
Though I very much doubt this code is needed at all – one has to search hard for device with Javascript disabled (and this is when <noscript> .. </noscript> kicks in).
Also I doubt recent Shopify themes would work properly without JS enabled…
May as well restore the original code.
if my post is helpful, please like it ♡ and mark as a solution -- this will help others find it
Hi @Jess-FFF, @tim_1 has the solution to your problem. The body tag is broken. it needs to be like the 2nd screen shot @tim_1’s suggested.
Thank you, really appreciate your help