How can I add custom fonts to the Symmetry theme?

Solved

How can I add custom fonts to the Symmetry theme?

oneshot
Visitor
2 0 0

Hello, I have added my custom fonts into my assets in the theme editor but they don't show in the library. I can't select them. Can someone help? I am using the Symmetry theme. Screenshot 2024-01-23 at 10.37.17 AM.pngScreenshot 2024-01-23 at 10.37.13 AM.png

Accepted Solution (1)

PageFly-Richard
Shopify Partner
4902 1100 1776

This is an accepted solution.

Hi @oneshot 


This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
@font-face {
    font-family: 'bruliavariabletest';
    src: url('{{'bruliavariabletest-display.woff' | asset_url}}');
}

@font-face {
    font-family: 'bruliavariabletest-display';
    src: url('{{'bruliavariabletest-display.woff2' | asset_url}}');
}
</style>

Hope this can help you solve the issue

 

Best regards,

Richard | PageFly

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


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


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

View solution in original post

Replies 5 (5)

Huptech-Web
Shopify Partner
1047 208 225

Hi @oneshot 
You have uploaded the fonts to assets but to fetch the fonts you need to add below CSS code to theme.liquid

 

 

<style>
@font-face {
    font-family: 'bruliavariabletest';
    src: url('{{'bruliavariabletest-display.woff' | asset_url}}');
}

@font-face {
    font-family: 'bruliavariabletest-display';
    src: url('{{'bruliavariabletest-display.woff2' | asset_url}}');
}
</style>

 

 

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
oneshot
Visitor
2 0 0

Anywhere in the theme liquid?

PageFly-Richard
Shopify Partner
4902 1100 1776

This is an accepted solution.

Hi @oneshot 


This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
@font-face {
    font-family: 'bruliavariabletest';
    src: url('{{'bruliavariabletest-display.woff' | asset_url}}');
}

@font-face {
    font-family: 'bruliavariabletest-display';
    src: url('{{'bruliavariabletest-display.woff2' | asset_url}}');
}
</style>

Hope this can help you solve the issue

 

Best regards,

Richard | PageFly

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


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


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

alamaa
Visitor
1 0 0

Thanks for the hint; how can I then reference this font family in the headers or various parts of the theme? (base_font, navigation h1..)

chels_grove
Shopify Partner
75 0 20

Thanks @PageFly-Richard so I added this - then called it out in the Custom CSS in the content block, my css is working in that the font does change, but to Times New Roman - so somewhere it is not pulling in the custom font. I have both .woff and .woff2 added this is the custom css I have: 

.text-overlay__title {
  font-family: “landry-gothic” !important;
}

 

And this is what I added right above </head>

  <style>
@font-face {
    font-family: 'landry-gothic';
    src: url('{{'Landry-Gothic.woff' | asset_url}}');
}

@font-face {
    font-family: 'landry-gothic';
    src: url('{{'Landry-Gothic.woff2' | asset_url}}');
}
</style>

 

Any ideas?