How can I add Forum regular font to my Craft theme?

How can I add Forum regular font to my Craft theme?

Daniela77
Visitor
2 0 0

Hi can someone please explain how to add Forum-regular font to Craft theme. I already converted to woff.2 and tried to edit the base.css file. 

Thank you

Replies 3 (3)

PageFly-Noah
Shopify Partner
1317 233 273

Hi @Daniela77 

 

This is Noah from PageFly - Shopify Page Builder App

 

You can follow my steps below to get this solved. 

Step 1: You need to upload the font to Shopify Content first

PageFlyNoah_0-1697007939820.png

 

Step 2: Online Stores > Themes > More Actions > Edit code click on theme.liquid and paste the code above the </head>

<style>
@font-face {
  font-family: 'Forum-regular';
  
  font-style: normal;
  font-display: swap;
  src: url("paste-your-src-here") format("woff2"),
}
</style>

After that you can easily to use the font by just add font-family: 'Forum-regular'; for the element you want

 

Hope this can help you solve the issue 

 

Best regards,

Noah | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Daniela77
Visitor
2 0 0

Hi Noah

Thanks for your reply. unfortunately it did not work.

PageFly-Noah
Shopify Partner
1317 233 273

@Daniela77 Can you share with step are you having trouble on? 
and if possible you can take a screenshots of your code for me 

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.