Enqueue script on all templates, not just index.php
It seems like the plugin only loads on the main index template. It would be great to have it load on all templates with matching selectors.
The only check which is done when starting the plugin is the "is_single()" return value (to not load the plugin on "single post" pages)
Have you more information about that? On which page do you want to load the plugin?
That's the culprit. It's actually is_singular() which prevents it loading on pages as well. I've changed it to is_single() to fix my problem. Thanks!
I'm not sure to understand. Do I need to change something on the plugin ? Or is it ok ?
If you want the plugin to load on normal pages, you need to change is_singular() to is_single(). The latter will prevent loading only on single posts.
http://codex.wordpress.org/Function_Reference/is_singular http://codex.wordpress.org/Function_Reference/is_single