Jump to content

Store Category Order Help

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

5 minutes ago, rwp said:

@tuanphan I have a fix for this, but it might be overly complicated. Do you know of any quick tricks?

I usually use CSS Flex Order for these questions =]]

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
  • Solution

Try adding to Home > Design > custom CSS

@media screen and (min-width:641px) {
.ProductList-filter-list {
	display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
ul.ProductList-filter-list>:nth-child(8) {
    margin-right: 15px;
}
}
@media screen and (max-width:640px) {
.ProductList-filter-dropdownToggle-checkbox:checked~.ProductList-filter-list {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
}
/* All */
ul.ProductList-filter-list>:nth-child(1) {
    order: 1;
}
/* On Sale */
ul.ProductList-filter-list>:nth-child(2) {
    order: 2;
}
/* T Shirts */
ul.ProductList-filter-list>:nth-child(7) {
    order: 3;
}
/* Tank Tops */
ul.ProductList-filter-list>:nth-child(8) {
    order: 4;
}
/* Hoodies*/
ul.ProductList-filter-list>:nth-child(3) {
    order: 5;
}
/* Ladies */
ul.ProductList-filter-list>:nth-child(4) {
    order: 5;
}
/* Music */
ul.ProductList-filter-list>:nth-child(5) {
    order: 5;
}
/* Other */
ul.ProductList-filter-list>:nth-child(6) {
    order: 6;
}

 

Edited by tuanphan
add flex-wrap

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
35 minutes ago, tuanphan said:

Try adding to Home > Design > custom CSS


@media screen and (min-width:641px) {
.ProductList-filter-list {
    display: flex;
    justify-content: center;
}
ul.ProductList-filter-list>:nth-child(8) {
    margin-right: 15px;
}
}
@media screen and (max-width:640px) {
.ProductList-filter-dropdownToggle-checkbox:checked~.ProductList-filter-list {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
}
/* All */
ul.ProductList-filter-list>:nth-child(1) {
    order: 1;
}
/* On Sale */
ul.ProductList-filter-list>:nth-child(2) {
    order: 2;
}
/* T Shirts */
ul.ProductList-filter-list>:nth-child(7) {
    order: 3;
}
/* Tank Tops */
ul.ProductList-filter-list>:nth-child(8) {
    order: 4;
}
/* Hoodies*/
ul.ProductList-filter-list>:nth-child(3) {
    order: 5;
}
/* Ladies */
ul.ProductList-filter-list>:nth-child(4) {
    order: 5;
}
/* Music */
ul.ProductList-filter-list>:nth-child(5) {
    order: 5;
}
/* Other */
ul.ProductList-filter-list>:nth-child(6) {
    order: 6;
}

 

This worked great, thank you!

Link to comment
12 minutes ago, rwp said:

@ofgoodnature Did that give you an overflow issue on narrower screens? I couldn't get flex orders to work when I tried.

 

flex-wrap?

17 minutes ago, ofgoodnature said:

This worked great, thank you!

I just adjusted the code. You can insert again new code

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.