Code Snippets Articles.

Various code snippets we use throughout our projects. We’re big fans of plugins but also advocates for keeping code lean to avoid plugin-bloat. Hopefully these will help on your projects as well.

1

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…

I gotta read this...

0

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…

I gotta read this...

0

Add custom CSS to WordPress Admin without a plugin

Do you want to style the WordPress Admin area without modifying WordPress core CSS files? So did we. Hacking WordPress core files is bad, because the hacks would be overwritten on the next WP update. (Son of a…!) But by placing this snippet in your theme’s functions.php file, these rules will stay intact on each…

Ok, show me the goods...

0

Disable the WordPress Admin bar without a plugin

Does the Admin bar in WP 3.x annoy you as well? Yeah, us too. Place the code below in your theme’s functions.php file and say goodbye to the Admin bar. This will not only disable the bar for any users, it also removes the preferences option in WordPress’ Admin area.

Give me the scoop...