Shopify themes, liquid, logos, and UX
Hi,
For some reason, every time I update or add text on my Policies pages through Settings>Policies, the font changes (see screenshot below). The correct font is the first one with serif (I do not know the name of this font, it has been added by a developer no longer working on the website so I don't know if it is a system font or a custom font).
What is the code I can add to theme.css file to harmonize the font on the policies page? And another for reducing the size of the heading?
Thank you very much for your help!
Solved! Go to the solution
This is an accepted solution.
Hi Gemini,
I just realized that this is not a theme issue, but rather how Shopify creates the policy pages on the fly. Select the affected text and try clearing the formatting of the text.
It's hard to give you a code right away as it might affect everything in your store.
So what do we need to do in order not to affect everything but just the Policies pages? I have seen some other posts where they gave code and it worked, my issue is just that I do not have the correct name for my font as I am not the one that chose it. Is there any way to have the code apply the site-wide font to the policies pages?
Thank you,
I see. Can you send a link of your store so that I can take a look into it? You mentioned that your font changed after changing the policies, so the original font should be there and something must be affecting it.
Hi Paul,
Here is a link to the webshop, one of the policies pages (you can find them in the About section):
https://geminiatelier.com/policies/shipping-policy
It is password protected, and the password is: sushimonamour
Thanks!
I'll take a look into it and let you know.
Hi Gemini,
I'm a bit confused. The font should be the font-style that has the serif right? Can you point to me which is this serif? Is it the font used by the title: "Delivery Policy"?
Can you also point to me which text is having a font issue?
The correct font is the one of the title Delivery Policy and of the first lines of text. You can see on the screenshot below that the font change to a sans serif one further down (from "Prices Denmark" which corresponds to new text I typed in there through Settings>Policies).
Ah okay, I understand now. From what I see here, your original font is still here but the text from Prices Denmark and below is overwriting your site-wide font. You won't need to write new code to apply your site-wide font, you just need to remove the overwriting one in the theme.
...
Can you guide me through the steps to remove this over writing issue from inside the theme?
This is an accepted solution.
Hi Gemini,
I just realized that this is not a theme issue, but rather how Shopify creates the policy pages on the fly. Select the affected text and try clearing the formatting of the text.
It worked 🙂 Thank you so much for your help and time!
Thank you for letting me know that it worked!
You can go to to theme -> Edit code -> Layout -> theme.liquid
Find this tag </head>
Just above this you can add below line of code:
If you want to remove the font completely then use below code:
<style>
body {font-family: serif !important;}
</style>
If you only wanted to change in policy page then add below code:
<style>
.shopify-policy__container {font-family: serif !important;}
</style>
If you still not able to find the solution useful. you can tell me I will help you.
Thanks.
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