Support » Plugins » Hacks » Need help adding javascript to plugin

  • First, I’m a coding newbie (but very willing to learn).

    I need to add a bit of javascript code just before the closing body tag. I already have the code and it works perfectly when I paste it into the footer.php. However, I want to make the code into a plugin so it’s easily accessible to other wordpress users.

    I already have a “blank” plugin (created with the “plugin maker” plugin) with the necessities to make wordpress recognize it’s existance. However, I can’t figure out how to add the javascript to my website using a plugin.

    I have spent hours searching Google (and here) trying to figure out how to do this. How do I do this or Where can I go to learn this?

    Alternatively: does anyone have the code I need handy so they could paste it here with “paste-your-javascript-code-here” where I need to put my code?

    I have been here: but when I tried to use the code I couldn’t make it work or firgure out what I was doing wrong.

    Thanks in Advance

  • The topic ‘Need help adding javascript to plugin’ is closed to new replies.