Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Change order of categories page by page


Theo4543

Question

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
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

3 answers to this question

Recommended Posts

  • 0

In fact I want a few simpler choices. I just want the "Novelty / New" category to always be the first category in all my shops. Because it is the only category that is found everywhere.

694141645_Capturedcran2021-05-2711_14_52.thumb.png.1150d14fb51715a44ff30461703db59c.png

Link to comment
  • 0

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.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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