Tag Archives: code

Reusable base CSS styles for easy responsive site structure

Don’t want a bloated framework you have to learn/master just to be able to build a robust site structure that breaks down nicely into RWD (responsive web design)? We don’t either. For most projects we use a few simple reusable CSS classes to make RWD much easier. Frameworks like HTML5 boilerplate or Zurb’s foundation are…

How to remove WordPress’ Generator meta tag without a plugin

The “generator” meta tag can be removed with one simple line of PHP. Nice. We love WordPress. A lot. It’s amazing. But we won’t to blast out to the world our WordPress version number so that spam/malware bots will quickly find us. (They’ll still find us/you and our clients, but removing the generator tag can…

WordPress: How to enqueue jQuery from Google’s CDN without a plugin

Prefer to load jQuery from Google rather than enqueue it from WordPress’ Core? Yeah, we do too. There are many benefits to loading jQuery from Google’s CDN (Content Delivery Network): It’s likely a user previously visited a site that relied on the jQuery version your calling, which means they’ll have it cached already. If they…

Stop WordPress auto updates for plugins and core: no plugin needed

Just some simple code to prevent WordPress from notifying about updates for plugins or WordPress’ core. No plugin needed! We use this snippet on every site we build so that the client doesn’t auto update a plugin or the WordPress core without first testing. Updates are great, but if you don’t have a proper testing…