Visible CSS Code Showing on Website Footer – How Do I Remove It? (Shopify – foxesanddoe.com)

Solved

Visible CSS Code Showing on Website Footer – How Do I Remove It? (Shopify – foxesanddoe.com)

Foxesanddoe
Tourist
11 0 3

Hi everyone,
I’m having an issue with my Shopify site https://foxesanddoe.com. There’s a line of raw CSS code showing at the bottom of my website when viewed live. Unfortunately, I am not able to find the code to fix it, and I am not knowledgeable enough to figure it out. I keep using Ctr+F in different folders, but nothing is popping up.  It looks like this: @media (max-width: 768px) {
.announcement-bar, .top-banner {
z-index: 9999 !important;
position: relative !important;
}
}
@media only screen and (max-width: 768px) {
.header-bar a, .header-bar button {
color: #4A3B36;
}
}

 

I believe this was accidentally placed in the wrong spot, but I can’t figure out where it is or how to remove it. I’ve checked my theme.liquid and footer.liquid files, but I might be missing something.

Can someone help me identify where this could be hiding and how to safely remove it so it doesn’t display on the live site?

Thanks so much in advance!

Accepted Solution (1)

tim
Shopify Partner
4450 529 1628

This is an accepted solution.

This is how browser receives your HTML:

Screenshot 2025-04-18 at 10.39.24 AM.png

 

So I am pretty sure it's at the very bottom of your layouts/theme.liquid file.

 

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 8 (8)

Jack_Khan_Baba
Shopify Partner
123 9 17

Make sure to paste the CSS inside a <style> tag if you're using it within a section or template file that isn't a .css file.

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Chat on WhatsApp: +923143054166
Need a Shopify developer? Hire us at naimatullahts335@gmail.com
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
Foxesanddoe
Tourist
11 0 3

Thank you for your time and attention. Unfortunately, I am not able to find the code to fix it, and I am not knowledgeable enough to figure it out. I keep using Ctr+F in different folders, but nothing is popping up. 

suyash1
Shopify Partner
10951 1356 1731

@Foxesanddoe please check theme.liquid file, before </body> tag you might be having this css

 

it should be wrapped in <style>  </style>

 

I think your </style> tag is closed before starting this css , which should be closed after the css

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Foxesanddoe
Tourist
11 0 3

Thank you much! Once I found it, this fixed it! 

tim
Shopify Partner
4450 529 1628

This is an accepted solution.

This is how browser receives your HTML:

Screenshot 2025-04-18 at 10.39.24 AM.png

 

So I am pretty sure it's at the very bottom of your layouts/theme.liquid file.

 

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
Foxesanddoe
Tourist
11 0 3

Thank you so much for helping find it! It is fixed!

Dan-From-Ryviu
Shopify Partner
11680 2289 2470

Hi @Foxesanddoe 

Please go to your store admin > Sales channels > Online store > Themes > click "..." > Edit code > open theme.liquid or footer.liquid file, find those codes and wrap them into this.

<style>
</style>

 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

namphan
Shopify Partner
2690 349 398

Hi @Foxesanddoe,

Please go to Actions > Edit code > layout > theme.liquid file. You can try searching here

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com