M
M
muav2018-07-23 15:59:40
WordPress
muav, 2018-07-23 15:59:40

How to skip only one plugin in wp_head and wp_footer?

There is a page template for WordPress, completely built on statics. Those. I don't need to load the styles and scripts of all plugins and the engine itself there, with the exception of the contact form plugin (and, accordingly, the scripts on which it depends).
Is there any elegant solution how to deregister all unnecessary scripts and styles for a certain page/template without listing them, but at the same time allow the selected plugin to work correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorca, 2018-07-23
@zorca

Manually insert all plugin scripts and styles by removing wp_head and wp_footer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question