WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on a custom page template in my theme and I want to remove all other styles and scripts which are loaded, like default theme style, jQuery & other scripts.

I want to remove all for the template page.

Please suggest.

share|improve this question

What Theme are you using? Your question is entirely Theme-dependent, so specific answers will requiring knowing what Theme you use. (Also, it would be helpful to know if any of your Plugins are injecting scripts.)

The answer really depends on how those scripts and scripts are called.

  1. If they are called properly, they are registered and enqueued, which means that you simply need to deregister them.
  2. If they are hard-coded into the header, the easiest solution would probably be to create a custom header template file, called e.g. header-custom.php, which you can then call in your template file, via get_header( 'custom' ).
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.