Title: CSS and Javascripts not loading
Last modified: August 22, 2016

---

# CSS and Javascripts not loading

 *  [kranzoky](https://wordpress.org/support/users/kranzoky/)
 * (@kranzoky)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-and-javascripts-not-loading/)
 * The plugin does not load the CSS or Javascript files on the pages it needs to.
   The plugin works great if I manually load in the CSS and Javascript files. How
   can I get the plugin to load the files correctly so I don’t have to hard code
   in the files within my theme.
 * [https://wordpress.org/plugins/gif-animation-preview/](https://wordpress.org/plugins/gif-animation-preview/)

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

 *  Plugin Author [SubZtep](https://wordpress.org/support/users/subztep/)
 * (@subztep)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-and-javascripts-not-loading/#post-5373664)
 * I think it is a problem with your template. It uses WordPress’s css/js embed 
   functions, should work…
 *  Thread Starter [kranzoky](https://wordpress.org/support/users/kranzoky/)
 * (@kranzoky)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-and-javascripts-not-loading/#post-5373665)
 * Could the reason the CSS/JS files are not loading for the plugin be because I
   am just loading jQuery using the line below (without using the wp_enqueue_script
   method and registering it with WordPress):
 * <script src=”[http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script&gt](http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script&gt);
 * So the plugin is not aware that jQuery is present?
 * Thanks.
 *  Plugin Author [SubZtep](https://wordpress.org/support/users/subztep/)
 * (@subztep)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-and-javascripts-not-loading/#post-5373678)
 * It shouldn’t be problem, the worst case is you include jquery twice.
 * Be sure you add
 * `<?php wp_head(); ?>`
 * to the template header for include the css file, and add
 * `<?php wp_footer(); ?>`
 * to the template footer for include the js file.
 *  Thread Starter [kranzoky](https://wordpress.org/support/users/kranzoky/)
 * (@kranzoky)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-and-javascripts-not-loading/#post-5373681)
 * Okay, it looks like the theme did not have <?php wp_head(); ?> in the header.
   So that would account for the CSS file not loading. However, the theme does have
   <?php wp_footer(); ?> in the footer… so why would it not include the js file?
 *  Plugin Author [SubZtep](https://wordpress.org/support/users/subztep/)
 * (@subztep)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-and-javascripts-not-loading/#post-5373698)
 * Js not included because the template doesn’t include jQuery on the proper way
   so the plugin think jQuery doesn’t exists.
 * I just removed jQuery check from the plugin (download new version 1.10.1), it’s
   useless anyway. I hope it works now.

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

The topic ‘CSS and Javascripts not loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gif-animation-preview_846d5d.svg)
 * [GIF Animation Preview](https://wordpress.org/plugins/gif-animation-preview/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gif-animation-preview/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gif-animation-preview/)
 * [Active Topics](https://wordpress.org/support/plugin/gif-animation-preview/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gif-animation-preview/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gif-animation-preview/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [gap](https://wordpress.org/support/topic-tag/gap/)

 * 5 replies
 * 2 participants
 * Last reply from: [SubZtep](https://wordpress.org/support/users/subztep/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/css-and-javascripts-not-loading/#post-5373698)
 * Status: not resolved