Change order of filter buttons (alphabetize)
-
I am working on a filtered gallery with the free version of VP. I have managed some custom CSS to make the filter buttons different colors. The image gallery is manually sorted.
What I am noticing – and do not like – is that the filter buttons change order based on how the images are sorted. Since I am going for a rainbow type effect for the filter button grouping (each button having its own color in the spectrum), I need to control the order – have a static order – to those filter buttons.
I’d expect those filter buttons to be alphabetized based on their labels – which is what I’d like to happen.I found the plugin file on Github for the filters, but am not savvy enough to be able to discern how to potentially hook into this in my own theme to control the order: https://github.com/nk-crew/visual-portfolio/blob/master/src/templates/items-list/filter/filter.php
Can anyone find a way to alphabetize these – and not be affected by the sort order of the gallery?
- The topic ‘Change order of filter buttons (alphabetize)’ is closed to new replies.