How to style the header text in collections page with CSS?

How to style the header text in collections page with CSS? I want adjust the side margins and font size according to mobile view.

Page URL: https://katharos.co.in/collections/aromadiffusercombo

1 Like

Hi @ishaankatharos ,

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:
  4. And Save.
@media only screen and (max-width: 720px){
.section__inner.rich-text__inner {
    margin-left: 10px;
    margin-right: 10px;
}
h2.rich-text__heading.ff-heading.fs-heading-2-base.fs-heading-1-base-ns {
    font-size: 30px;
}
}

Result:

I hope it help.

1 Like