Shopify themes, liquid, logos, and UX
I want to make a button on my website have a different font to everything else. I don't want it to interfere with other buttons, just want to do this individual one.
I want to have the 'explore' button in Lucia Font as in here
Also would like the 'explore' text to be underlined
My Website link is shopgrande.co
Hi @shopgrande, you can try Fontify app to change the font without coding.
Hi @shopgrande Please follow the steps.
Add font-face rule in CSS: Once your font files are uploaded, you need to define a @font-face rule in your CSS to specify the font-family and the paths to your font files. You can add this rule to your theme's CSS file. Here's an example:
@font-face { font-family: 'CustomFont'; src: url('{{ 'customfont.woff2' | asset_url }}') format('woff2'), /* Modern Browsers */ url('{{ 'customfont.woff' | asset_url }}') format('woff'); /* Older Browsers */ font-weight: normal; font-style: normal; }
Replace 'CustomFont' with the desired name for your custom font and 'customfont.woff2' and 'customfont.woff' with the file names of your font files.
body { font-family: 'CustomFont', sans-serif; }
Replace 'CustomFont' with the name you used in the @font-face rule.
If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Best Regards
Sahil
- Your
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025