While Wordpress provides a robust platform for web publishing requirements with many additional functions available as Plugins there are still software requirements that may not be catered for.
The Script Manager plugin for Wordpress allows you to easily add such additional sections of programming code known as scripts.
In many cases Script Manager avoids the need for users to edit template and css files associated with their blog in order to implement a function they wish to use.
Scripts intended to operate globally throughout your blog should be inserted in Settings / Scripts where 3 windows are available for entry of scripts in the Header and Footer or as Onload Events.
Note that scripts in the header can also be used to insert arbitrary <meta> and <style> tags while scripts in the footer can accommodate arbitrary html code.
Scripts required to operate only on a single post or page should be entered in the Scripts window in the functions listed underneath the Editor. Click on the drop down arrow to the right of the grey bar to open the Scripts window.
For entry specific scripts you can use the Behaviour buttons to specify whether the entry script will operate in addition to site wide scripts on that entry or will replace the site wide script for that entry.
Scripts in Onload Events
The opportunity to enter scripts as Onload Events is included to cover all eventualities. You should rarely have any items in here. Only poorly written scripts would ever require you to add a body.onload event. Well-written scripts will run fine if inserted in the footer scripts, because they will insert themselves correctly into body.onload.
Similarly, some browsers may not properly recognise a body.onload event. In both cases, the Onload Events option ensures that the script will execute.
Therefore, users should try scripts in the header and/or footer first before resorting to Onload Events.
Script Manager – examples of use:
To insert custom css in the header
e.g. to change a font
To insert a meta in the header,
e.g. if Google requires you to install a google analytics meta tag on your site if it fails to verify the analytics code for any reason.
To insert an Aweber popup form in the footer
This package is part of Semiologic Pro, and is access-restricted.
Bleeding Edge Zip
Frequently Asked Questions
The Semiologic forum is the best place to report issues.
Version 1.6 =
- Fix static init_options message call
- WP 4.3 compat
- Tested against PHP 5.6
Version 1.5.1 =
- Fix undefined index warning message in post/page editing.
Version 1.5 =
- WP 4.0 compat
Version 1.4.3 =
- Previous settings were not being preserved upon updating to 1.4.
Version 1.4.2 =
- WP 3.9 compat
Version 1.4.1 =
- svn fix
Version 1.4 =
- Scripts and HTML can now be added to the body area of the site. Recently scripts like Google Tag Manager require insertion immediately after the opening tag.
- Code refactoring
Version 1.3.1 =
- WP 3.8 compat
Version 1.3 =
- WP 3.6 compat
- PHP 5.4 compat
Version 1.2.1 =
- Fix: Sem-cache Asset Cache now flushed on post Scripts & Meta change
Version 1.2 =
- Fix: Sem-cache Asset Cache now flushed on Scripts & Meta change
Version 1.1.3 =
- WP 3.0.1 compat
Version 1.1.2 =
- WP 3.0 compat
Version 1.1.1 =
- Pot file tweak
Version 1.1 =
- Complete rewrite
- Code enhancements and optimizations