in colorbox there are two vars ;
// Abstracting the HTML and event identifiers for easy rebranding
colorbox = 'colorbox',
prefix = 'cbox',
Can I change these via a jquery function when i call colorbox.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Obviously you cant change the hard coded vars but you can add new ones which is the answer what i was looking for.
Here is what I used to add new class name to cbox. This allows you change the layout of colorbox by assigning a additional class name.
code;
To the defaults add cssClass like so;
Find the function publicMethod.prep
add this line
To add a css class name to your overlay box just add the attribute