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
  • Views 981
  • Created
  • Last Reply

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;
}

}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.