Weird code in header

Topic summary

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:

  • Strange code snippet containing class="gradient" is visible
  • The code appears to be reversed/encoded text that includes:
    • What looks like a screenshot reference with a date (2022-11-25)
    • Dimensions or coordinates (096x186)
    • A partial URL or file path
    • Text mentioning “my afterpay banner” (when reversed)

Current Status:

  • The issue remains unresolved with no responses yet
  • The user is seeking help to identify and remove this mysterious code from their header
Summarized with AI on November 24. AI used: claude-sonnet-4-5-20250929.

Can anyone help with this on my second website www.fuzzkit.nz

Theme is Refresh

class=“gradient”>

It’s sitting above my afterpay banner

1 Like

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
7 Likes

Please open theme.liquid file move this code after <body below this part of code class="gradient">

1 Like

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