Title: Loading car demon header conditionally
Last modified: August 21, 2016

---

# Loading car demon header conditionally

 *  Resolved [Masha](https://wordpress.org/support/users/hellawhateva/)
 * (@hellawhateva)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/loading-car-demon-header-conditionally/)
 * Hi Jay, I’m trying to find how can I load car-deamon-header.php on cars-for sale
   page only? Currently it loads in wp_head on default and I find it too extra and
   slowing the page loads. I’d like to load scripts conditionally, I usually use
   deregister function, but can’t find how do i deregister car-deamon header, is
   there a hook for header only? or I found you have a filter in car-deamon.php 
   on line 101 add_filter(‘wp_head’, ‘car_demon_header’);, can i set instead of 
   wp-head car sales page ID? Problem is currently cars-for-sale is using archive-
   cars_for_sale.php and I have no idea where to find ID, please help!
    Thank you
   🙂
 * [http://wordpress.org/extend/plugins/car-demon/](http://wordpress.org/extend/plugins/car-demon/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [theverylastperson](https://wordpress.org/support/users/theverylastperson/)
 * (@theverylastperson)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/loading-car-demon-header-conditionally/#post-3799888)
 * Hi Masha,
 * If you’ll download the development version from;
    [http://downloads.wordpress.org/plugin/car-demon.zip](http://downloads.wordpress.org/plugin/car-demon.zip)
 * There is a function in the top of the car-demon-header.php file that now has 
   the css enqueued, you could use wp_dequeue_script & wp_dequeue_style to remove
   them everywhere they aren’t needed.
 * [http://codex.wordpress.org/Function_Reference/wp_dequeue_script](http://codex.wordpress.org/Function_Reference/wp_dequeue_script)
 * I have a note to set several files to load conditionally, I also added a note
   to add a hook to the header function.
 *  Thread Starter [Masha](https://wordpress.org/support/users/hellawhateva/)
 * (@hellawhateva)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/loading-car-demon-header-conditionally/#post-3799919)
 * Thanks, this helps a lot
 *  Plugin Author [theverylastperson](https://wordpress.org/support/users/theverylastperson/)
 * (@theverylastperson)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/loading-car-demon-header-conditionally/#post-3799922)
 * Just wanted to make sure that you now had the functionality you needed.
 * If you run into more bumps go ahead and create a new thread.
 * take care,
    -jay
 *  Thread Starter [Masha](https://wordpress.org/support/users/hellawhateva/)
 * (@hellawhateva)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/loading-car-demon-header-conditionally/#post-3799927)
 * Thanks for checking Jay, so far so good, it bumped me from C to B on YSlow and
   everything works fine right now 🙂
 *  Plugin Author [theverylastperson](https://wordpress.org/support/users/theverylastperson/)
 * (@theverylastperson)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/loading-car-demon-header-conditionally/#post-3799929)
 * Are you using CloudFlare? You can use that to boost it up a little more, especially
   using their rocket script feature (in beta). It does cause one of my sites to
   blink right after load,but it shaved my page load time and my YSlow hit A-.
 *  [lydwolf1](https://wordpress.org/support/users/lydwolf1/)
 * (@lydwolf1)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/loading-car-demon-header-conditionally/#post-3799943)
 * Thanks,
 * More info stored. Hopefully the mind will be able to retrieve it when necessary.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Loading car demon header conditionally’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/car-demon_748ba6.svg)
 * [Car Demon](https://wordpress.org/plugins/car-demon/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/car-demon/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/car-demon/)
 * [Active Topics](https://wordpress.org/support/plugin/car-demon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/car-demon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/car-demon/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [lydwolf1](https://wordpress.org/support/users/lydwolf1/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/loading-car-demon-header-conditionally/#post-3799943)
 * Status: resolved