Custom WordPress Widget CSS Classes

Published on Tuesday 11, June 2013
One thing that I has always bothered about WordPress widgets is the lack of ability to define custom widget CSS classes for each widget - it is kind of ugly using the stock widget IDs when you have four text widgets. I've been working on a plugin to extend widget functionality to match features found in Drupal's blocks. I just posted a GitHub gist quickly highlighting the WordPress filter hook.
CSS Facebook Chat Head Saturday 18, May 2013 mglaman
I finally got my first account, and created some CSS Facebook Chat heads. You can check out the pen, and play around with it.

Flush WordPress rewrite rules through phpMyAdmin

Published on Friday 26, April 2013
I migrate a lot of WordPress installs from a localhost to the beta server and then to production. It's easy enough to update the URLs in _options and guids in _posts, but the one thing that irritated the hell out of me was the rewrite rules. WordPress caches the rewrite rules within _options; if you've migrated a WordPress you'll notice links are broken even though .htaccess is fine. Simply find "rewrite_rules" in _options table and clear out it's value - badda bing.

XAMPP MySQL Command Line

Published on Tuesday 2, April 2013

MySQL command line allows you to manage your database environment through your terminal, or command prompt for Windows. Typically when you set up a web server you would have installed MySQL as its own service and can easily access the MySQL command line via mysql (mysql.exe). However in a development situation you may have used XAMPP which bundles it all together for you and you can't just access the XAMPP MySQL command line through a registered path.

Matt Cutts from Google on WordPress and SEO

Published on Saturday 30, March 2013
This video was recorded from WordCamp 2009 in San Francisco back in 2009. Four years may have passed, but the basics of search engine optimization are still there. I think one of the problems we all face when dealing with SEO is becoming too calculated and analytical instead of trying to be natural - which Google tries to do.

A better responsive sidebar

Published on Monday 18, March 2013
Sidebar content always gives me a little twinge when it comes to responsive design. Typically a left sidebar will end up stacking directly above the content and a right sidebar directly below. This can be fine, unless your left sidebar has 5 different content areas and now the user has to scroll two screen lengths just to read an article. Or the right sidebar has an important call-to-action you apparent to each visitor, but it resides underneath the content on a mobile device.

Speed Up WordPress Load Time

Published on Sunday 24, February 2013
I like that WordPress has a built in permalink builder, however I wish it had a built in way of adding your own custom rules. You can, however, write a function to hook with the flush_rewrite_rules() built in WordPress. I borrowed some of Sergey Chernyshev's .htaccess lines and created a function to add gzip compression and caching rules to speed up WordPress load time.

Modern IE, Aptana and SVN, and Responsive...Fonts?

Published on Tuesday 19, February 2013
Here is a quick roundup of some interesting links for just the beginning of the week: is a site by Microsoft basically saying "Sorry we've been ruining your life, we're going to act like we know about web standards now."  In all honesty though,  I give Microsoft respect for at least attempting to clean up their previous embarrassments.
Subscribe to Blog