Shopify themes, liquid, logos, and UX
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!
Solved! Go to the solution
This is an accepted solution.
This is how browser receives your HTML:
So I am pretty sure it's at the very bottom of your layouts/theme.liquid file.
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.
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.
@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
Thank you much! Once I found it, this fixed it!
This is an accepted solution.
This is how browser receives your HTML:
So I am pretty sure it's at the very bottom of your layouts/theme.liquid file.
Thank you so much for helping find it! It is fixed!
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.
Hi @Foxesanddoe,
Please go to Actions > Edit code > layout > theme.liquid file. You can try searching here
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025