Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am working on a custom page template in my theme, 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.