Jump to content

How do I change the size of the category font so it is smaller?

Go to solution Solved by justinjamesclack,

Recommended Posts

I would like the categories displayed e.g. small originals, to be smaller. I have tried using other code i've found in forums but it doesn't work. I currently have this code in my custom css:

 

@media screen and (max-width: 575px) {
  .products.collection-content-wrapper .nested-category-children {
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
  }
  .nested-category-breadcrumb-list-item .breadcrumb-separator {
    display: none;
  }
}

 

This is used to make the category tiles stacked on mobile view. I would like to add new code to make the font size smaller on desktop view, without changing the code that's already there to stack the categories on mobile view. I'm not sure how to add more code when there is already code there.

 

Thanks!

Rachel 

Screen Shot 2024-03-25 at 13.13.12.png

Link to comment
  • Replies 5
  • Views 462
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

1 minute ago, rachyb said:

I would like the categories displayed e.g. small originals, to be smaller. I have tried using other code i've found in forums but it doesn't work. I currently have this code in my custom css:

 

@media screen and (max-width: 575px) {
  .products.collection-content-wrapper .nested-category-children {
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
  }
  .nested-category-breadcrumb-list-item .breadcrumb-separator {
    display: none;
  }
}

 

This is used to make the category tiles stacked on mobile view. I would like to add new code to make the font size smaller on desktop view, without changing the code that's already there to stack the categories on mobile view. I'm not sure how to add more code when there is already code there.

 

Thanks!

Rachel 

Screen Shot 2024-03-25 at 13.13.12.png

Try this code, to see if it works;

.product.collection-content-wrapper .nested-category-children .nested-category-item {

font-size:14px !important; 

}

Adjust the font size to your liking.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.