Plugin Author
YMC
(@wssoffice21)
Hi! You can write custom styles for the filter-button–all button class and then style this button according to your needs. You can specify styles within the plugin settings in the Advanced -> Custom CSS section.
Thank you for getting back to me. I tried adding the CSS below to have it show up as selected by default but the button is still changing back to the inactive colour – which i assume is set by the javascript?
#ymc-filter-1 .js-filter-button-all
{@starting-style {
background-color:black;}
Is there a way for the ALL button itself to display as active/selected as the starting style and for it to become inactive once the user has clicked on another filter?
Plugin Author
YMC
(@wssoffice21)
Thank you, I have tried this but the problem is that when I select another filter button, the setting is permanent so the colour does not change when the filter is no longer showing ‘ALL’ posts.
I was wondering if there is a way to set the ALL button as ‘active’ by default when the page is initially loaded.
I do not want the ALL option to display as active when another filter is selected. (see below)
https://prnt.sc/PobVdGjXEWan
Thank you again for your help.
Plugin Author
YMC
(@wssoffice21)
You can use custom JavaScript and add a click handler to it that will remove the class from the “All” button. This is custom code that can also be written within the Custom JS plugin settings.