Jump to content

Mobile: How to show all Categories in my store?

Go to solution Solved by Lesum,

Recommended Posts

  • popofglitter changed the title to Mobile: How to show all Categories in my store?
  • Solution

@cinnamoncat You can add this code snippet under Custom CSS panel:

@media only screen and (max-width: 575px)
	.products.collection-content-wrapper .nested-category-children {
		flex-wrap: wrap !important;
		overflow: visible !important;
	}
	.products.collection-content-wrapper .nested-category-breadcrumb-list-item .nested-category-breadcrumb-link {
		margin-left: 0 !important;
	}
}

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment

@cinnamoncat Awesome! You can add this code to make make sure all the row start in the same position. 

@media only screen and (max-width: 575px) {
	a.nested-category-breadcrumb-link:first-child {
		margin-left: 1.5vw !important;
	}
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
22 minutes ago, cinnamoncat said:

Nevermind, I changed "margin-left" to "margin-center" and it worked 🙂

"margin-center" is a syntax error (there's no such thing as margin-center in CSS code).

Change it to margin-left: 1.5vw !important;

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment

@cinnamoncat "Children's Clothing & Accessories" doesn't have enough space to fit in the same line. We have two options to fix the issue.

First option is to add the code below to swap the position of "Athleisure" with "Children's Clothing & Accessories"

@media screen and (max-width: 575px)
li.nested-category-breadcrumb-list-item:nth-child(4) {
    order: 3 !important;
}

The second option is to reduce the margin next to each category with the code below:

@media only screen and (max-width: 575px) {
	.products.collection-content-wrapper .nested-category-breadcrumb-list-item .nested-category-breadcrumb-link {
    	margin-left: 1vw !important;
		margin-right: 1vw !important;
	}
}

You can add any of the code blocks to see which one you think works best.

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.