Jump to content

Reorder categories shop page

Recommended Posts

Site URL: https://bluebird-vuvuzela-mxmr.squarespace.com/

Hi, I'm trying to reorder the categories from my shop page.

I know that by default it's alphabetized but is there a code that I can use to fix this? I tried to copy/past a code from the forum but it didn't work... 😕

For instance I'd like to change the order of the categories for each shop page (Top, Manteaux & Vestes, Pantalons, Robes & jupes, Chaussures & accéssoires):

Femme

Homme

  1. XS
  2. S
  3. M
  4. L
  5. XL

Thank you !!

Link to comment
  • Replies 13
  • Created
  • Last Reply

Top Posters In This Topic

Add to Home > Design > Custom CSS

/* this code for desktop ss 70 */
/* check by tuanphan */
@media screen and (min-width:641px) {
ul.ProductList-filter-list {
    display: flex;
    flex-direction: column;
}
/* female */
.ProductList-filter-list-item:nth-child(2) {
    order: 1;
}
/* Homme */
.ProductList-filter-list-item:nth-child(3) {
    order: 2;
}
/* XS */
.ProductList-filter-list-item:nth-child(8) {
    order: 3;
}
/* S */
.ProductList-filter-list-item:nth-child(6) {
    order: 4;
}
/* M */
.ProductList-filter-list-item:nth-child(5) {
    order: 5;
}
/* L */
.ProductList-filter-list-item:nth-child(4) {
    order:6;
}
/* XL */
.ProductList-filter-list-item:nth-child(7) {
    order: 7;
}

}

 

Edited by tuanphan

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Try this

ul.ProductList-filter-list {
    display: flex;
    flex-direction: column;
}
/* female */
.ProductList-filter-list-item:nth-child(2) {
    order: 1;
}
/* Homme */
.ProductList-filter-list-item:nth-child(3) {
    order: 2;
}
/* XS */
.ProductList-filter-list-item:nth-child(8) {
    order: 3;
}
/* S */
.ProductList-filter-list-item:nth-child(6) {
    order: 4;
}
/* M */
.ProductList-filter-list-item:nth-child(5) {
    order: 5;
}
/* L */
.ProductList-filter-list-item:nth-child(4) {
    order:6;
}
/* XL */
.ProductList-filter-list-item:nth-child(7) {
    order: 7;
}

Mobile takes more time. Try the code above, if it doesn't work, I will check back in a few days

. Hopefully in the meantime someone will provide the answer.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
18 hours ago, tuanphan said:

Try this


ul.ProductList-filter-list {
    display: flex;
    flex-direction: column;
}
/* female */
.ProductList-filter-list-item:nth-child(2) {
    order: 1;
}
/* Homme */
.ProductList-filter-list-item:nth-child(3) {
    order: 2;
}
/* XS */
.ProductList-filter-list-item:nth-child(8) {
    order: 3;
}
/* S */
.ProductList-filter-list-item:nth-child(6) {
    order: 4;
}
/* M */
.ProductList-filter-list-item:nth-child(5) {
    order: 5;
}
/* L */
.ProductList-filter-list-item:nth-child(4) {
    order:6;
}
/* XL */
.ProductList-filter-list-item:nth-child(7) {
    order: 7;
}

Mobile takes more time. Try the code above, if it doesn't work, I will check back in a few days

. Hopefully in the meantime someone will provide the answer.

It works it broke the menu 😕 Someone have an idea ? Thanks for your help again !

Link to comment
2 hours ago, Tristan93100 said:

What do you mean ?

Open this url on mobile (pass: 5555pock): https://www.fripsix.com/shop

It's on the top page

image.thumb.png.f74122eb6bea1d6438c077fbee31e094.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.