Title: dodgy plugin installation
Last modified: August 21, 2016

---

# dodgy plugin installation

 *  [rompelstilchen](https://wordpress.org/support/users/rompelstilchen/)
 * (@rompelstilchen)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/dodgy-plugin-installation/)
 * hello,
 * i wanted to install a plugin, but it requires to add js and css links
    first 
   i added script tags to the header.php, but i been told not to do that
 * so i want to use wp_enqueue_script and wp_enqueue_style but i dont want to create
   a new theme and i dont want my changes to be erased when i update WP (or my theme)
 * so i found this tutorial
    [http://scribu.net/wordpress/optimal-script-loading.html](http://scribu.net/wordpress/optimal-script-loading.html)
   there is some php code but i cant figure out where to put the code itself (do
   i have to use child themes ?)
 * I actually installed WP so i did not had to put my hands on the code but i guess
   there ain’t no perfect plugin
    and so far, I am completely confused about how
   to do that
 * plz help me out
 * appreciate

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/dodgy-plugin-installation/#post-4846002)
 * Where did you download this plugin from?
 * > do i have to use child themes ?
 * In this case, yes – that would be the recommended solution.
 *  Thread Starter [rompelstilchen](https://wordpress.org/support/users/rompelstilchen/)
 * (@rompelstilchen)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/dodgy-plugin-installation/#post-4846211)
 * but where do i put the php code for wp_enqueue_script and wp_enqueue_style ?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/dodgy-plugin-installation/#post-4846243)
 * In your theme’s functions.php file.

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

The topic ‘dodgy plugin installation’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/dodgy-plugin-installation/#post-4846243)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
