Theo4543 Posted May 26, 2021 Share Posted May 26, 2021 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
Theo4543 Posted May 27, 2021 Author Share Posted May 27, 2021 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. Link to comment
tuanphan Posted May 28, 2021 Share Posted May 28, 2021 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.