wp_register_script and 'prettyPhoto'
-
Topic
-
It appears that either there’s a conflict with another plugin on my site, or WordPress itself does not support capital letters in wp_register_script
By replacing ‘prettyPhoto’ as the ID with ‘prettyphoto’, it resolves the issue we were having with the frontend producing this JS error:
“Uncaught TypeError: Object [object Object] has no method ‘prettyPhoto'”
Hosted on WPEngine, so it could be to do w/ it’s own caching processes or something too.
Either way, best to avoid capital letters if it’s possible to update it in the future.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.