• 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?)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Gregarious provides an option to not show it on pages.

    Also, I think you can control on what pages the plugin code takes effect by using conditional tags like is_page().

    Thread Starter Dalton Rooney

    (@daltonrooney)

    Thanks, srikat. Can you tell me where to find that option? I don’t see it on my version of the plugin. (It says “Gregarious 2.0 (Build 61) ? 2007 Ankur Kothari”)

    Thread Starter Dalton Rooney

    (@daltonrooney)

    Whoa – I was just reading the features list from the Gregarious home page and realized that my version doesn’t have any of that good stuff. And I thought I had the latest version. Maybe mine’s a beta? Thanks for the advice, I’ll look into this.

    Thread Starter Dalton Rooney

    (@daltonrooney)

    OK, figured that out. Gregarious offers the ability to not show the Post Badge on every page, but it’s still running in the background. The javascript and css load up, and the form itself is appended to the bottom of the page (you just can see it because there’s no link).

    I’m going to have to look into the conditional tags option. Thanks.

    Thread Starter Dalton Rooney

    (@daltonrooney)

    Wouldn’t you know it, Oliver just updated Cforms with the ability to load the plugin on a per-page basis. Thanks! I wish I could do that with every plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disabling plugins on a per-page or per-template basis?’ is closed to new replies.