Shopify themes, liquid, logos, and UX
I am trying to override the font-size set in the theme editor in my third-party theme. The Shopify theme editor setting goes up to 160px only—I would like my text to be huge.
I can't seem to specify the selector (in my custom CSS) well enough to override the theme.
Here is my preview link. I would like to style "More Goodness" (and the subtext) on the banner/hero image.
Solved! Go to the solution
This is an accepted solution.
In your liquid file (For Heading) :
[data-wetheme-section-id="{{ section.id }}"] .content-wrapper--text_static h1 {
font-size: 200px !important;
}
This will look something like this in your markup:
[data-wetheme-section-id="template--16842095952038__af3e824e-6ca9-4ac4-9510-a07cb14e4a66"] .content-wrapper--text_static h1 {
font-size: 200px !important;
}
In your liquid file (For subtext) :
[data-wetheme-section-id="{{ section.id }}"] .content-wrapper--text_static h4 {
font-size: 120px !important;
}
This is an accepted solution.
In your liquid file (For Heading) :
[data-wetheme-section-id="{{ section.id }}"] .content-wrapper--text_static h1 {
font-size: 200px !important;
}
This will look something like this in your markup:
[data-wetheme-section-id="template--16842095952038__af3e824e-6ca9-4ac4-9510-a07cb14e4a66"] .content-wrapper--text_static h1 {
font-size: 200px !important;
}
In your liquid file (For subtext) :
[data-wetheme-section-id="{{ section.id }}"] .content-wrapper--text_static h4 {
font-size: 120px !important;
}
Thank you! Worked like a charm.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024