• I’m using the cforms II contact form plugin on one page of my site.

    I’m wondering if there’s a way to load this plugin on that one page? Otherwise there is a CSS file and a JS file loading on every page of the site, when it’s not needed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You’ll need to contact the plugin author for this. Unless he/she wrote it to allow this, it’s simply going to load the css and js file no matter what. All you probably require is a conditional statement somewhere in the plugin asking if the current page is the page you only want it to load on, but again, you’ll need to talk to the plugin author to find out where/how to set this.

    yeh great question, there must be a way to do this. its also happening with my pages – cforms II & nextgen loading its css files and js file on every bloody page???

    anyone know what to do?

    harknell is correct. You’ll need to add a conditional statement to the plugin somewhere.

    if ( is_page('contact') ) {
    // load css and js
    }

    Hey i’ve been searching through the cforms forum and found some info here https://www.deliciousdays.com/cforms-forum?forum=1&topic=489&page=1&post=2611#p2611

    They seem to think that there is a plugin that can configure these type of things? does anyone know what the would be cause i can’t find one in the directory?

    How useful would this plugin be!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Load a plugin only on specific pages?’ is closed to new replies.