Plugin Author
Baden
(@baden03)
if you have build the button exactly as the example then you see that the button has a class of colomat-visited after it has been clicked once.
Simply add the following css:
.colomat-visited {
display: none;
}
keep in mind this will affect all collapse elements globally across your site. If you want to add this only to specific buttons, you will need to also use a unique class to the triggers and then change the css like so:
.your_unique_class.colomat-visited {
display: none;
}
Let us know if that does it for you.
Plugin Author
Baden
(@baden03)
Any joy getting this to work?
Hi Baden, Thank you for your great response.
Adding the .colomat-visited class solved the issue!
I will mention that I am unable to find where exactly to apply the unique class, but that may just be an issue with my theme and rapid composer. I will experiment more.
Thank you!
Plugin Author
Baden
(@baden03)
the colomat-visited class will be auto-applied to any collapse element once it is clicked on the first time.
Plugin Author
Baden
(@baden03)
ah, and to apply the unique class, check out the documentation on using the trigclass attribute.
Hi Baden, Thank you once again for the help!
Applying a unique class using the trigclass attribute solved my problem!
(I think I accidentally used targclass initially)
Thank you!
Plugin Author
Baden
(@baden03)
Huzzah! Glad you got it sussed out. Issue marked as resolved.
If you are pleased with the plugin or it’s support, please consider leaving a review.