Title: Javascript loading problem
Last modified: August 19, 2016

---

# Javascript loading problem

 *  [_mary_](https://wordpress.org/support/users/_mary_/)
 * (@_mary_)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/javascript-loading-problem/)
 * Hello,
 * I’m trying to make my own WP theme, but the problem is that javascript is not
   working.
    Here is part of my code in header.php file:
 *     ```
       <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.easing.js"></script>
       <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.vticker-min.js"></script>
       ```
   
 * and in functions.php
 *     ```
       <?php
       if( !is_admin()){
          wp_deregister_script('jquery');
          wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.js"), false, '1.4.1');
          wp_enqueue_script('jquery');
       }
       ```
   
 * I think my code is right, but none of javascript is loading. In my html template
   js is work fine.
 * Where is the problem?

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

 *  Thread Starter [_mary_](https://wordpress.org/support/users/_mary_/)
 * (@_mary_)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/javascript-loading-problem/#post-1504183)
 * Hello, I fixed it. The problem was- my cu3er slider not loaded. The reason was
   in config.php file.
    Here is the solution: Just before `require_once('../../../../
   wp-config.php');` you must put `@` simbol: `@require_once(‘../../../../wp-config.
   php’);’
 * Look here:
    [](http://community.xajaxproject.org/topic/8046/assigning-the-return-value-of-new-by-reference-is-deprecated/)
 *  [janustudios](https://wordpress.org/support/users/jojithedevil/)
 * (@jojithedevil)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/javascript-loading-problem/#post-1504337)
 * Man Can u tell me how can i embed Cu3ER Gallery in wordpress or how did u do 
   it… i really need it badly i will be thankful to you.!!! Please help me out

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

The topic ‘Javascript loading problem’ is closed to new replies.

## Tags

 * [cu3er](https://wordpress.org/support/topic-tag/cu3er/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [Javascript not loading](https://wordpress.org/support/topic-tag/javascript-not-loading/)

 * 2 replies
 * 2 participants
 * Last reply from: [janustudios](https://wordpress.org/support/users/jojithedevil/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/javascript-loading-problem/#post-1504337)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
