Dawn Theme Font Size and Color Change product cart items

Solved

Dawn Theme Font Size and Color Change product cart items

alyhz
Excursionist
31 0 6

https://imanethelabel.com/

how can I change the font size of the title and how can I change the price font size and color as well? on the collection page items as well as on the homepage section? see images below

 

 

Accepted Solution (1)
CafeDelMar
Shopify Partner
163 36 46

This is an accepted solution.

@alyhz, let's try this one instead

 

<style>
	h3.card__heading.h5 {
	    font-size: 9px!important;
	}

	span.price-item.price-item--regular:not(.product *) {
	    color: #737373!important;
	    font-size: 7px!important;
	}
</style>

 

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 7 (7)

CafeDelMar
Shopify Partner
163 36 46

Hi @alyhz.

I don't think Dawn has those settings built-in, so a workaround would be to overwrite the values with additional CSS rules. Do you already know what font size and color you'd like to change to?

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution
alyhz
Excursionist
31 0 6
Hi! I can add the code, I want the color for the price to be grey and the font size around 7px, for the title it should be 9px
CafeDelMar
Shopify Partner
163 36 46

Here's how to do that:

  • Navigate to Online Store > Three dots > Edit code
  • Find the theme.liquid file
  • Paste the code below right before the closing </body> tag
  • Save and hard-refresh the storefront
<style>
	h3.card__heading.h5 {
	    font-size: 9px!important;
	}

	span.price-item.price-item--regular {
	    color: #737373!important;
	    font-size: 7px!important;
	}
</style>

 

The above code will work for both, collections and the homepage. However, you'd need to readjust the values as 9 and 7px fonts are incredibly small.

 

Here's how it looks:

Screenshot_4.png

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution
alyhz
Excursionist
31 0 6

hi, thank you very much - this was helpful but this is also changing the font size of the price on the product page (which I do not want) can I somehow exclude that?

CafeDelMar
Shopify Partner
163 36 46

This is an accepted solution.

@alyhz, let's try this one instead

 

<style>
	h3.card__heading.h5 {
	    font-size: 9px!important;
	}

	span.price-item.price-item--regular:not(.product *) {
	    color: #737373!important;
	    font-size: 7px!important;
	}
</style>

 

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution
alyhz
Excursionist
31 0 6

thank you!!

CafeDelMar
Shopify Partner
163 36 46

Anytime! Glad I could help! 🙂

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution