Jump to content

Change order of categories page by page

Recommended Posts

Site URL: https://www.addictgalerie.com/mobiliers-shop

Hello I managed to change the order of my categories in the shop thanks to this coding:

/* reorder category links */

ul.ProductList-filter-list {

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;

    -webkit-box-pack: center;

        -ms-flex-pack: center;

            justify-content: center;

}

/* All */

ul.ProductList-filter-list>li:nth-child(2) {

    order: 2;

}

Link page: https://www.addictgalerie.com/mobiliers-shop

It works perfectly and is easy to understand.

However I have several shop pages and this code modifies the categories of all my pages. Do you have a solution to make the coding only interact with one page?

Thank you

Link to comment
  • Replies 3
  • Views 576
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add code to Page Header 

<style>
  /* reorder category links */

ul.ProductList-filter-list {

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;

    -webkit-box-pack: center;

        -ms-flex-pack: center;

            justify-content: center;

}

/* All */

ul.ProductList-filter-list>li:nth-child(2) {

    order: 2;

}
</style>

 

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

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.