Jump to content

Mobile: How to add columns in store?

Go to solution Solved by Lesum,

Recommended Posts

  • Solution

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

@media only screen and (max-width: 767px) {
	.products.collection-content-wrapper .list-grid {
		grid-template-columns: repeat(2,minmax(0,1fr)) !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

Hm, that did not seem to work. Here is all the CSS I currently have including your suggestion:

.header-nav-item a:hover {
    font-weight: bold;
}

.nested-category-breadcrumb-link {
  font-weight: bold;
}
.category-link {
  font-weight: bold;
}

button.cart-row-edit::before {
  content:'Add Notes'
}
button.cart-row-edit span {
  display:none;
}
/* Fix mobile shifting */
@media screen and (max-width:700px) {
.header-title-nav-wrapper {
    max-width: 57% !important;
}
}
@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;
    }
}
@media only screen and (max-width: 767px) {
    .products.collection-content-wrapper .list-grid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
}

 

Link to comment

@cinnamoncat There's an error on the code you edited. You added "margin-center: 0 !important;". Change it to "margin-left: 1.5vw !important;"

Because of the error on your edited code, last block of code isn't working. 

Edited by Lesum

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

hi @Lesum I changed it back to margin-left and still only one column

.header-nav-item a:hover {
    font-weight: bold;
}

.nested-category-breadcrumb-link {
  font-weight: bold;
}
.category-link {
  font-weight: bold;
}

button.cart-row-edit::before {
  content:'Add Notes'
}
button.cart-row-edit span {
  display:none;
}
/* Fix mobile shifting */
@media screen and (max-width:700px) {
.header-title-nav-wrapper {
    max-width: 57% !important;
}
}
/* show all categories */
@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: 1.5vw !important;
	}
}
@media only screen and (max-width: 767px) {
    .products.collection-content-wrapper .list-grid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
}

 

Link to comment
Just now, cinnamoncat said:

Nevermind, the two columns show on the actual mobile site, but does not update on squarespace emulator for some reason.

Thank you!!

Great!

Yes, Squarespace Editor is having some technical issues for the last month or so. When you apply custom code, it doesn't show up immediately unless you reload the page. 

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

As a note to anyone wanting a 2-column grid on their mobile product page, this feature has been added to the store section settings. You can find it by editing the store section and toggling the mobile view:

image.thumb.png.0dd0596dc5fb82519688f6cd616d55d8.png

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? 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.