I have a working carousel which I would like to package as a theme:
I’ve been trying to figure out how to whitelist a class or attribute for the script to target that would work with under a theme.
But these topics cover plugin structure and I could not get any of the methods to work in a theme.
I’ve used the
[dir] attribute - white-listed by default - in another theme here
However, that won’t work for two reasons:
1- the Next and Previous buttons will be mixed up based on the text direction
2- The slides can contain text like so:
and I’d really rather not go down that rabbit hole where I override the text direction with CSS - that’s just too hacky even for me.
I’m pretty much stuck here
The current selector I’m using to initialize the script on the container is:
So my question is:
How can I while-list a class or attribute for a div in a theme?