Shopify themes, liquid, logos, and UX
I know how to add custom font in Dawn 2.0 Theme but how can i provide option for user to select it from Theme Customizer ?
Following code is present in css file.
h1,
h2,
h3,
h4,
h5,
.h0,
.h1,
.h2,
.h3,
.h4,
.h5 {
font-family: var(--font-heading-family);
font-style: var(--font-heading-style);
font-weight: var(--font-heading-weight);
letter-spacing: 0.06rem;
color: rgb(var(--color-foreground));
line-height: 1.3;
}
As you can see there is some variable --font-heading-family which is somehow linked to customizer
Below is the snap shot of customizer. Also, the fonts shown in customizer are not present in theme files !
Did you ever figure this out? I'm trying to use a font from Adobe Fonts and haven't been able to figure this out yet. Thanks.
Never mind I figured it out. Had to locate the appropriate CSS file and update the appropriate selectors.
What was the file that needed to be updated? I am trying to do the same.
Were you able to get the custom font to populate in the Theme Customizer? I've found the font-family variables in theme.liquid but wondering if there's a cleaner way.
Thanks!
Can you please share the solutions?
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