Shopify themes, liquid, logos, and UX
Hi, I'd like to change the font on only the product titles and announcement bar, while keeping the font I use for titles and headings across the rest of the website. I have tried some solutions in changing the code but everything I have tried, upon saving nothing changes on my website. If anyone would be able to offer some advice or a solution I would be most grateful. I am using the template dawn and possibly the font I would like to change it to would be Raleway, however this is a tangible option but I take it swapping out the font styles would be the easy part (I hope). Many thanks.
Solved! Go to the solution
This is an accepted solution.
Please update the code below:
<link href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<style>
#shopify-section-announcement-bar .announcement-bar__message{
font-family: 'Raleway' !important;
}
.product__info-wrapper .product__title,
.product__info-wrapper .product__title h1,
ul.product-grid .card__heading a,
ul.product-grid .card__heading{
font-family: 'Raleway' !important;
}
</style>
Hope my solution can work and support you!
Kind & Best regards!
GemPages Support Team.
Hello @charlieharrier
It's GemPages support team and glad to support you today.
To provide you with the most precise solution in this case, could you please share the home page link?
Hi there, the homepage link is www.jewelry-bargain.com . The current font for headings is 'Smooch' and I would like to keep that across the site, but instead changing the announcement bar font and product titles to 'Raleway'. Many thanks.
It's the GemPages support team and glad to support you today.
I would like to give you a solution to support you:
1. Go to Online Store -> Theme -> Edit code:
2. Open your theme.liquid theme file
3. Paste the below code before </body>:
<link href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<style>
#shopify-section-announcement-bar .announcement-bar__message{
font-family: 'Raleway' !important;
}
ul.product-grid .product__title,
.product__info-wrapper .card__heading{
font-family: 'Raleway' !important;
}
</style>
Hope my solution can work and support you!
Kind & Best regards!
GemPages Support Team.
Hi there, thank you very much for the reply. I have copied the code and pasted it in the <body> section and it has changed the announcement bar but it has not changed the product titles. Just to clarify I have put it in the theme.liquid file. Any idea why it has changed the announcement bar but not the products title? Thanks again.
This is an accepted solution.
Please update the code below:
<link href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<style>
#shopify-section-announcement-bar .announcement-bar__message{
font-family: 'Raleway' !important;
}
.product__info-wrapper .product__title,
.product__info-wrapper .product__title h1,
ul.product-grid .card__heading a,
ul.product-grid .card__heading{
font-family: 'Raleway' !important;
}
</style>
Hope my solution can work and support you!
Kind & Best regards!
GemPages Support Team.
Thank you this has worked for me 🙂
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024