Only load on single blog post pages?
-
This plugin seems to be what I’m looking for, but the problem I’m facing is that it loads its javascript file on all pages instead of just the blog posts that have a comment form. It also loads jQuery right above it, which is causing a conflict with the jQuery script I’ve hard-coded into my HTML, which results in two versions of jQuery being loaded.
So two questions:
1) Is there a way within functions.php to dequeue anti-spam, then queue it back in only to load on “single/is_single” pages?
2) Is there any way to remove the jQuery dependency from appearing in the source code?I’d prefer to do this without hacking the Anti-Spam source files, in order to future-proof it.
This page seems to touch on what I’m referring to:
https://wordpress.stackexchange.com/questions/55924/when-to-use-add-actioninit-vs-add-actionwp-enqueue-scripts/55928#55928Thanks
- The topic ‘Only load on single blog post pages?’ is closed to new replies.