I’m talking with someone else’s plugin, not my own. I’d like to do this without touching their code (I’d like to do it in a separate file).
I thought there was a way to do that, something like:
$.defaults.pluginname or something?
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.
This completely depends on the plugin and how it was written. For the larger ones yes this is typically supported (most of the time) but it’s definitely not guaranteed and definitely varies in how they coded the plugin…since there are a dozen different fundamental ways to do it.
If you posted the actual plugin you want to modify we can tell you the best approach do it, but there’s no guarantee you can do this without editing its code.
Edit: since you’re using the colorbox plugin you can use the exposed
settingsobject to set defaults before calling.colorbox(), like this:Any of the colorbox options are settable this way.