• I’m using Visual Form Builder on this page: http://tecostaff.com/dev/contact/

    On activating the plugin it puts the JS and CSS script calls in all the headers of all the pages (I have 4 distinct headers) – which is what it’s supposed to do. What a WASTE. It only needs to be in one header, the contact page header.

    Is there a way of putting some code in the functions.php page either in my theme or the plugin’s that will specify to ONLY put the plugin code in the specified header? thanks

    This by the way is not specific to the VFB plugin – this question is relevant for ALL plugins. Usually I am only using the plugin on one or two pages and it is not needed for the plugin scripts to be called on each and every page. This creates un needed bandwidth, and goes against optimization sense.
    thanks

The topic ‘functions.php- limit plugins calling scripts in header’ is closed to new replies.