Tag Archives: plugin
Behind the Websites: Delay Print Stylesheets Plugin
August 27, 2010
A few weeks ago I wrote a post in which I adapted an idea from a zOompf article to delay the loading of print stylesheets until after a web page has fully rendered. I’ve decided to convert the code from the original post into a plugin and add it to the WordPress plugin directory.
Tags: CSS, JavaScript, plugin, WordPress
Behind the Websites: Getting the bloginfo correctly
July 13, 2010
One of the standout problems when using plugins with WordPress MS is when they define a constant for the plugin’s url as the script starts executing.
Tags: bloginfo, coding, domains, plugin, theme, WordPress, WordPress MS
Behind the Websites: JavaScript the WordPress Way / Part 2
June 4, 2010
In Part 1 we introduced the wp_register_script
and wp_enqueue_script
functions developed to avoid JavaScript conflicts.
In this section we’ll deal with a more complicated example. We’ll also take what we’ve learnt about including JavaScript and apply it to our CSS.
Tags: coding, CSS, JavaScript, plugin, theme, WordPress, wp_enqueue_script, wp_enqueue_style, wp_register_script, wp_register_style
Behind the Websites: JavaScript the WordPress Way / Part 1
June 3, 2010
Problems arise when your theme or plugin both use the same JavaScript library or if Prototype and jQuery are both used on the same site.
Two of the most important WordPress functions are often ignored by WordPress theme and plugin developers. Introducing: wp_register_script
and wp_enqueue_script
.
Tags: coding, JavaScript, plugin, theme, WordPress, wp_enqueue_script, wp_register_script