Title: Using wp_enqueue Evolve theme
Last modified: August 31, 2016

---

# Using wp_enqueue Evolve theme

 *  [ahelsayed](https://wordpress.org/support/users/ahelsayed/)
 * (@ahelsayed)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/using-wp_enqueue-evolve-theme/)
 * I turn to this awesome community , after days of trying to fix this bug, my problem
   is really simple, but it has got to me. I am trying to enqueue a Java script 
   to my Theme my login Plugin while using the evolve theme.
 * here is the code snippet that does that, and i used the global function to check
   if the function is being loaded , and it is not being loaded. ‘a’ does not change
   to true.
 * For some reason it looks like ‘wp_enqueue_scripts is not working. I have tried
   to also add wp_head() with no luck.
 *     ```
       <?php
       $GLOBALS['a'] = 'false';
       add_action( 'wp_enqueue_scripts', 'load_location' );
   
       function load_location() {
       $GLOBALS['a'] = 'true';
       	wp_register_script('load_location_test',get_template_directory_uri().'/load_location.js', array('jquery'),'1.1',true);
       	wp_enqueue_script('load_location_test');
       }
   
       ?>
       <?php echo $GLOBALS['a'] ?>;
       ```
   
 * Thanks in advice
 * The link is [http://www.meetntrain.com/register](http://www.meetntrain.com/register)

The topic ‘Using wp_enqueue Evolve theme’ is closed to new replies.

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [tml](https://wordpress.org/support/topic-tag/tml/)
 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)

 * 0 replies
 * 1 participant
 * Last reply from: [ahelsayed](https://wordpress.org/support/users/ahelsayed/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/using-wp_enqueue-evolve-theme/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
