Greetings,
I've done a few custom themes for WordPress but I'm looking to get further into specialized themes and plugins. Please point me to specific pages in the Codex if that is easier than answering the questions below. Thanks.
One of the first things I've come up against is where the best place is in a theme or plugin to include javascript functions. With a typical web site I would add the ubiquitous "js" directory at the web root and put everything there. Then reference them in the head section. With a WordPress theme there doesn't seem to be such a directory in most theme directories. One advice was to just but them in header.php but I prefer not to have lengthy javascripts in the header. Should I just have a scripts.js file for the theme in the theme directory and put all the javascript functions there?
As for plugins, my main question is how to provide a data field in the WP control panel, for either a theme or a plugin, that a user can enter data into, likely some html embed/object code. Many of the plugins provide this for settings and such but I'm confused how one stores this into the database.
Also, there is mention that the footer can be used to "hook" includes into a web page. I'm not sure how these "hooks" work.
Any direction or help would be much appreciated.
Thanks,
Bob.