Title: Js files don&#039;t work
Last modified: August 22, 2016

---

# Js files don't work

 *  [Samar Hatem](https://wordpress.org/support/users/samar-hatem/)
 * (@samar-hatem)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-files-dont-work/)
 * Hi, I have changed the menu of this theme to another one but Js files don’t work
   I don’t know why?
    in functions.php:
 *     ```
       function sam_menu_scr(){
           wp_enqueue_script('classie', get_template_directory_uri() . '/js/classie.js');
           wp_enqueue_script('main', get_template_directory_uri() . '/js/main.js');
   
       }
       add_action('wp_enqueue_scripts','sam_menu_scr');
       ```
   
 * is some thing wrong?
    here’s the link to my site: [http://demo09.test03.vixohub.com/](http://demo09.test03.vixohub.com/)

The topic ‘Js files don't work’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Samar Hatem](https://wordpress.org/support/users/samar-hatem/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/js-files-dont-work/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
