Loading the CF7 CSS and JS only on relevant pages.
-
I was delighted to find this page which outlines how to prevent the CF7 JS and CSS loading on pages that don’t contain any CF7 forms, however after I added the code to wp-config and then, in turn, added the php to the relevant template, not a lot happened, the CSS/JS was still loading on every page.
I wonder if this is perhaps a dated post and is no longer relevant?
Does anyone know how to achieve non-loading of JS/CSS on irrelevant pages?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Loading the CF7 CSS and JS only on relevant pages.’ is closed to new replies.