Title: Script tag for jQuery in plugin files
Last modified: August 21, 2016

---

# Script tag for jQuery in plugin files

 *  [greathug2u](https://wordpress.org/support/users/greathug2u/)
 * (@greathug2u)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/for-jquery-in-plugin-files/)
 * This might be a silly question since I’m really new at this. Can someone please
   tell me how to include this script tag inside of my plugin file? I know that 
   I should use enqueue_script to link a js file, but this one is just a piece of
   code for a jQuery plugin that I want to turn into a customizable WP plugin. Should
   I insert it as part of $content?
 * <script type=”text/javascript”>
    addthis.layers({ ‘theme’ : ‘gray’, ‘share’ :{‘
   position’ : ‘left’, ‘numPreferredServices’ : 5 } }); </script>

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/for-jquery-in-plugin-files/#post-3969761)
 * Hook into either ‘wp_head’ or ‘wp_footer’ actions, depending if you want it in
   the head section or at the end of the file. From you action callback, just `echo`
   the entire thing and it’ll show up in the head or footer of every page.

Viewing 1 replies (of 1 total)

The topic ‘Script tag for jQuery in plugin files’ is closed to new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [script tag](https://wordpress.org/support/topic-tag/script-tag/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/for-jquery-in-plugin-files/#post-3969761)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
