bind click events to the filters [image: 1690399019824-screenshot-2023-07-26-at-21.16.57-resized.png]
https://laytheme.com/documentation/custom-javascript.html#binding-click-events
read out the data-slug attributes:
https://api.jquery.com/attr/
jQuery("…").attr("data-slug")
insert a div element into the dom at the right location containing some text. the text depends on the data-slug value
https://api.jquery.com/insertafter/
you will probably also have to check if that div element exists already and then just replace its content:
https://api.jquery.com/html/
and then style this with css
good luck, it will be a little hard to do if you haven't written javascript before
Hello Marius,
This looks like a fun thing to code, I like the idea a lot :-)
Drop me an email if you still need help :
audrey.belaud@thepeople.world
Best wishes,
Audrey