Jump to content

Store Category Order Help

Recommended Posts

  • Replies 8
  • Views 262
  • Created
  • Last Reply

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

 

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

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

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.