colorbox
colorbox copied to clipboard
Make changing cboxElement class possible
If this can be exposed/changed in some way that would be great, don't know of the scope of this. But if you end up with 2 colorbox libraries on the same page this is the only point of contact between the two as far as I can tell.
That sounds reasonable. The 'cbox' class prefix is saved as a variable, but that variable is privately scoped, therefor changing it requires editing the colorbox script. So that option is available to if you have access to the script.
You could also use the className
option to namespace the styles you need to change.
Thanks for the input, I was able to resolve the issue by removing one of the libraries in my case, but in areas where I have less control, it would have been handy to be able to change the class.
I did see the className option which is handy for theming.