Disabling plugins on a per-page or per-template basis?
-
I am wondering if it’s possible to activate plugins on specific pages, rather than having them called every time wp_head() comes up. I am finding that I have lots and lots of plugins, but many are only used on a few specific pages.
Gregarious, for instance, is only used on the blog. We’ve got 100 other pages, and all the Gregarious code is called for each of those pages as well.
Cforms is another one. I get two css and two javascript files attached to every page, even though I only use Cforms a couple of times.
I am just looking for ways to fine tune my site and it seems like if I could hold off on loading a plugin until I actually need it, that would save a lot of wasted bandwidth and processing time.
Is this something that might be controlled on a per-template basis or even within the specific plugins? (For example, some kind of code that tells the plugin only to load up if template type = x or something like that?)
- The topic ‘Disabling plugins on a per-page or per-template basis?’ is closed to new replies.