Remove included js and css files from inappropriate pages

I have added forms form Contact forms 7 plugin to two tages at my website. But this plagin includes css and js files into all pages. For example at the page: bachelorarbeit in source code included:

<script type="text/javascript" src="http://essayhilfe.de/app/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.51.0-2014.06.20"></script>
<link rel="stylesheet" id="contact-form-7-css"  href="http://essayhilfe.de/app/plugins/contact-form-7/includes/css/styles.css?ver=4.7" type="text/css" media="all" />
<script type="text/javascript" src="http://essayhilfe.de/app/plugins/contact-form-7/includes/js/scripts.js?ver=4.7"></script>

How to remove this code from inappropriate pages?

Try this article on Loading JavaScript and Stylesheet only when it is Necessary. This refers specifically to the Contact Form 7 plugin. You might also find other help if you Google this, or do a search on the WordPress website.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.