All things Shopify and commerce
Hi everyone,
I am trying to change the font in specific sections of my website using the Custom CSS section (see below).
For example, my code would look like the following:
h2 {
font-family: Playfair Display;
}
However, the resulting font seems to just be a serif font - it however works if I change to another type of font, like Century Gothic.
I am not sure what is causing this issue - it seems like certain fonts are not being recognized and therefore it reverts to a standard font like serif.
Has anyone encountered this problem or figured out what is causing this issue?
Thanks!
If you're trying to change the font in specific sections of your Shopify website using the Custom CSS section, you can follow these steps:
Identify the specific section you want to change: Use your browser's developer tools or Shopify's theme editor to identify the section of the website where you want to change the font.
Write the CSS code: Once you've identified the section, write the appropriate CSS code to change the font. For example, if you want to change the font for all H1 headings in a section to Arial, you would write:
h1 { font-family: Arial, sans-serif; }
It's important to note that making changes to your website's CSS can have unintended consequences if you're not familiar with what you're doing. Make sure to backup your website and proceed with caution when making changes to your website's code. If you're not comfortable making these changes yourself, consider hiring a web developer or designer to help you.
Public Notice Ad in Newspaper
Thanks, I have tried that. The issue is that the code does not work for specific fonts. It seems that I am targeting the correct heading as the font will change if I change it to Arial, but will not work if I choose a different font.
<style> @font-face { font-family: "FontName"; src: url("Linkofthefontfile"); }
h2{
font-family: "FontName" !important;
} </style>
What would be the change for changing the font on the following sections:
div.product-option
caption-with-letter-spacing
span.price.price--end
h2.totals__total
p.totals_total-value
Hello, I have a hard time updating my font on my tab section, which is an add-on app, not sure it is actually possible ? I already applied my own font rule to the rest of the website.
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