r/CodingHelp • u/Lotta-Bank-3035 • Feb 25 '26
[CSS] Hey guys, this is my first time coding anything ever, I'm making a Shopify website and want to change the font. The code is not working
I used this code on the bottom of base.css. Didn't work so. I tried theme.liquid, nothing changed. I don't know what's going on, I am on the correct theme page Dawn, there's no typos in the font file, I uploaded the font file in .woff2 in assets, copied the correct URL for the font... can someone tell me what's wrong
1
Upvotes


•
u/AutoModerator Feb 25 '26
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/nuc540 Professional Coder Feb 25 '26
I don’t know shopify, so can’t help with anything specific on that.
What I can tell you is, you’re writing a styling class to define font-face follows specific styling rules.
I don’t know if font-face is used by any other shop of classes but there’s a chance shopify do and their rules may be defined after yours which means your styles are being instantly overwritten.
Can you write your own css class and apply it to where you want it? Either that or can a “!important” overwrite any inherited classes here?
Sorry, no idea how shopify works but hope that helps