Shopify themes, liquid, logos, and UX
I want to change the font on the image banner located on my home page. The font I want to change it to is Playfair Display Bold (playfair_display_n7).
Please let me know what code is needed and where to place it, thank you!
Website: https://shopkidsplaysets.com/
Font finder: https://shopify.dev/docs/storefronts/themes/architecture/settings/fonts#add-shopify-fonts-to-your-th...
Solved! Go to the solution
This is an accepted solution.
Hey @amycaslee
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
h2.banner__heading.inline-richtext.h1 {
font-family: 'Playfair Display' !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hey @amycaslee
Remove the previous code and add this new code with the same steps mentioned above.
<style>
h2.banner__heading.inline-richtext.h1 {
font-family: 'Playfair Display' !important;
}
@media screen and (min-width: 768px) {
h2.banner__heading.inline-richtext.h1 {
font-size: 40px !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hey @amycaslee
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
h2.banner__heading.inline-richtext.h1 {
font-family: 'Playfair Display' !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @Moeed! Thank you. Can I change the font size to where the text is just one line? If I change the Heading Size in Theme Editor, the font changes back to the old one.
This is an accepted solution.
Hey @amycaslee
Remove the previous code and add this new code with the same steps mentioned above.
<style>
h2.banner__heading.inline-richtext.h1 {
font-family: 'Playfair Display' !important;
}
@media screen and (min-width: 768px) {
h2.banner__heading.inline-richtext.h1 {
font-size: 40px !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025