Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi, thanks for reading.
I only want to change our homepage's blog's typography.
I think that I need to change the code, but unfortunately, I don't know how.
Is there any good way to fix this?
Our homepage and the post on our blog are:
https://kimspups.com/blogs/blog-5/the-positive-impact-of-living-with-a-dog-emotional-stability
Solved! Go to the solution
This is an accepted solution.
Go to your online store -> customize -> settings -> custom css and paste this code there
.article--content {
font-family: sans-serif !important;
}
This is an accepted solution.
Thanks for the info, try this one.
h1.article--title, .article--content, .article--author {
font-family: sans-serif !important;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
To change the blog typography on your homepage:
Add custom classes:
<h2 class="custom-blog-title">{{ blog.title }}</h2>
<p class="custom-blog-description">{{ blog.content }}</p>
Add conditional CSS:
{% if template == 'index' %}
.custom-blog-title {
font-family: 'Your Font', sans-serif;
font-size: 24px;
}
.custom-blog-description {
font-family: 'Your Font', sans-serif;
font-size: 18px;
}
{% endif %}
Hi, Asad-Mahmood,
Thanks for your reply. But, I couldn't find how to apply this code. Can you explain how to do it?
Please be more specific; you used 'typography,' which is a broad term. Clarify what you like to change. Thanks!
Hi, Made4uo-Ribe,
I want to change our blog's font, which is currently 'Shadows in Light', to Sans Serif.
This is an accepted solution.
Go to your online store -> customize -> settings -> custom css and paste this code there
.article--content {
font-family: sans-serif !important;
}
Thank you!!!
This is an accepted solution.
Thanks for the info, try this one.
h1.article--title, .article--content, .article--author {
font-family: sans-serif !important;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!