Title: Custom js and plugin js
Last modified: August 31, 2016

---

# Custom js and plugin js

 *  [17Mark](https://wordpress.org/support/users/17mark/)
 * (@17mark)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-js-and-plugin-js/)
 * Hi,
    I have problems with my javascript. If I didn’t activate plugin, js working.
   When I activated the plugin, js is not working. How can I fix it? There is my
   code:
 *     ```
       function my_script_enqueue(){
       	wp_enqueue_style('custom_style', get_template_directory_uri() . '/css/style.css', array(), '1.0.0', 'all');
       	wp_enqueue_script( 'custom_script', get_template_directory_uri() . '/js/scripts.js', array ( 'jquery' ), 1.1, true);
       }
   
       add_action( 'wp_enqueue_scripts', 'my_script_enqueue');
       ```
   

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

 *  [Sakar U Khatiwada](https://wordpress.org/support/users/sakaruk/)
 * (@sakaruk)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-js-and-plugin-js/#post-7210604)
 * Please use different names or use a prefix for enqueue process like your_theme_name_style
   and your_theme_name_script i think it should work. It may not work due to conflict
   in name
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-js-and-plugin-js/#post-7210607)
 * Then again, ” js is not working” does not indicate whether it’s being enqueued
   or not. Can you link to the page with the problem, or provide a more accurate
   description of the issue? Both would be best.
 *  Thread Starter [17Mark](https://wordpress.org/support/users/17mark/)
 * (@17mark)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-js-and-plugin-js/#post-7210653)
 * Hi, all scripts are included only aren’t working (see image in link). When I 
   deactivate plugin, my scripts are working.
    I tried some other name of function
   and it still does not work. [Image](http://postimg.org/image/vduh4vrsz/full/)
 *  [Sakar U Khatiwada](https://wordpress.org/support/users/sakaruk/)
 * (@sakaruk)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-js-and-plugin-js/#post-7210674)
 * Can you check the console i think there might be some javascript error or something
   so the codes are not working ?
 *  Thread Starter [17Mark](https://wordpress.org/support/users/17mark/)
 * (@17mark)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-js-and-plugin-js/#post-7210686)
 * There are errors from console:
    [imgur.com/Y5lVRAP](http://imgur.com/Y5lVRAP)
 *  [Sakar U Khatiwada](https://wordpress.org/support/users/sakaruk/)
 * (@sakaruk)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-js-and-plugin-js/#post-7210688)
 * I think the error is caused due to the conflict between prototype and jquery 
   and you need to find a way to manage it 🙂

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

The topic ‘Custom js and plugin js’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Sakar U Khatiwada](https://wordpress.org/support/users/sakaruk/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/custom-js-and-plugin-js/#post-7210688)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
