bidobab Posted March 7, 2022 Share Posted March 7, 2022 Hello! I've read everywhere, but I can't find a solution. The values of this attribute are the months of the year (in spanish). The months are being ordered alphabetically, but I need to order them correctly (or by id). Any ideas? Thanks in advance. Link to comment Share on other sites More sharing options...
Ress Posted March 7, 2022 Share Posted March 7, 2022 You could do this with css: ul#facet_xxx { display: flex; flex-direction: column; } ul#facet_xxx li:nth-child(1) { order: 5; } ul#facet_xxx li:nth-child(2) { order: 3; } ... Link to comment Share on other sites More sharing options...
bidobab Posted March 7, 2022 Author Share Posted March 7, 2022 33 minutes ago, Ress said: You could do this with css: ul#facet_xxx { display: flex; flex-direction: column; } ul#facet_xxx li:nth-child(1) { order: 5; } ul#facet_xxx li:nth-child(2) { order: 3; } ... Thanks, it could be a solution but, this number is not updated continuously (facet_xxx)? at least in my case the number changes every time I refresh the page Link to comment Share on other sites More sharing options...
Ress Posted March 7, 2022 Share Posted March 7, 2022 Yes, you could make a change to the template, and set a fixed class for each set of filters. For example, add the title as a class. 1 Link to comment Share on other sites More sharing options...
bidobab Posted March 7, 2022 Author Share Posted March 7, 2022 2 hours ago, Ress said: Yes, you could make a change to the template, and set a fixed class for each set of filters. For example, add the title as a class. Thank you very much Ress, with your help I was able to solve the problem 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now