Hey guys,
I would like to change the font of my add to cart buttons in the theme code.
Which code do I need to insert and where?
Thanks in advance!
Best
Laura
Hey guys,
I would like to change the font of my add to cart buttons in the theme code.
Which code do I need to insert and where?
Thanks in advance!
Best
Laura
Hi Laura,
If you navigate to edit your code in the store admin, Sales Channels → Themes → Actions → Edit Code, search for main-product.liquid (on Dawn, this could differ on your theme), then search in the liquid file with CMD + F for products.product.add_to_cart, above this you should see an element called add to the span:
style=“font-family: your-font-name;”
so that it now looks like: for example.
For this approach, you will need to know the name of your font.
Please let me know if you have additional questions.
Unfortunately there is no file called main-product.liquid
What could the name be instead?
Under templates is there a product.liquid file?