Tag Archives: coding
Quick Notes: How we do IE Hacks
September 14, 2011
We’ve recently changed the way we do IE hacks at Soupgiant. For years we were using conditional comments to load separate CSS files.
Tags: coding, CSS, ie6, ie7, internet explorer
Quick Notes: Big Red Framework
April 28, 2011
We’ve updated the base WordPress theme we use at Soupgiant for WordPress 3.1+ and to make more use of the WordPress API. Along with the standard features you would expect in a WordPress framework, it includes templates for the Theme My Login plugin, custom default code for Formidable / Formidable Pro plugins, custom html output […]
Behind the Websites: A half-baked (CSS) idea
September 21, 2010
Spritebaker has done the rounds a fair bit in web development circles over the past few weeks. It’s a great idea, done well. The only problem is it has the strange effect of making it seem like the page is actually taking longer to load. I take a look at a possible solution.
Tags: coding, CSS, data-URIs, JavaScript
Behind the Websites: JavaScript Localisation in WordPress
September 2, 2010
I was asked on Twitter recently if it’s possible to pass WordPress data to JavaScript, wp_localize_script()
is the tool to do it with.
Tags: coding, JavaScript, themes, WordPress, wp_enqueue_script, wp_localize_script
Behind the Websites: Delay loading of print CSS
July 28, 2010
Recently I stumbled across an article detailing browser performance with the CSS print media type. In most recent browsers the print stylesheet held up rendering.
The article suggested a solution, which I decided to automate for WordPress.
Tags: coding, CSS, JavaScript, 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: ‘Skip to Content’ Links
July 8, 2010
Josh and I were discussing the positioning of Skip to Content links on a website. In the past I’ve placed these in the first menu on the page, usually positioned under the header.
Tags: Accessibility, Best Practice, coding, content, JAWS, screen readers, WordPress
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