Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

greathug2u on "Script tag for jQuery in plugin files"

$
0
0

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 all articles
Browse latest Browse all 8245

Trending Articles