Change font size on metafield subtitle on product card

I am trying to figure out how to change the font size on a subtitle I have added to my product cards via metafields. I have tried numerous codes in numerous places but can’t seem to get it to work.

Hi @jamck

Please, share your store URL. Thanks!

jamcocandle.com PW: jam

Hello @jamck

Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.

.card__information .subtitle {
font-size: 20px!important;
}

Hi @jamck

To complete your requests, please follow these steps:

  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.
h3.card__heading p.subtitle {
    font-size: 16px !important;
}

Here is the result:

I hope this helps

Best,

Daisy

Thanks for the info, tryt 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:
.collection .card__content p.subtitle {
    font-size: 22px !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!