Re: Can I only change the typography of the blog page?

Solved

Can I only change the typography of the blog page?

KimKimKimKim
Excursionist
16 0 5

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

Accepted Solutions (2)
Asad-Mahmood
Shopify Partner
420 69 81

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;
}

AsadMahmood_0-1729457258201.png

 

If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




View solution in original post

Made4uo-Ribe
Shopify Partner
10137 2405 3039

This is an accepted solution.

Thanks for the info, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

h1.article--title, .article--content, .article--author {
    font-family: sans-serif !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1729460871641.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 7 (7)

Asad-Mahmood
Shopify Partner
420 69 81

To change the blog typography on your homepage:

  1. Add custom classes:

    • In the relevant section file (section-blog.liquid), add

 

<h2 class="custom-blog-title">{{ blog.title }}</h2>
<p class="custom-blog-description">{{ blog.content }}</p>
​



 

Add conditional CSS:

  • In your main stylesheet (theme.css.liquid), add:

 

{% 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 %}
​

 

If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




KimKimKimKim
Excursionist
16 0 5

Hi, Asad-Mahmood,

 

Thanks for your reply. But, I couldn't find how to apply this code. Can you explain how to do it?

Made4uo-Ribe
Shopify Partner
10137 2405 3039

Hi @KimKimKimKim 

Please be more specific; you used 'typography,' which is a broad term. Clarify what you like to change. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
KimKimKimKim
Excursionist
16 0 5

Hi, Made4uo-Ribe,

 

I want to change our blog's font, which is currently 'Shadows in Light', to Sans Serif.

Asad-Mahmood
Shopify Partner
420 69 81

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;
}

AsadMahmood_0-1729457258201.png

 

If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




KimKimKimKim
Excursionist
16 0 5

Thank you!!!

Made4uo-Ribe
Shopify Partner
10137 2405 3039

This is an accepted solution.

Thanks for the info, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

h1.article--title, .article--content, .article--author {
    font-family: sans-serif !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1729460871641.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.