Archive for the ‘Code’ Category

  • February 2, 2012

    Avoid conditionals in templates with template_include

    In WordPress, when creating custom templates, it’s common to end up duplicating code. I’m a huge proponent of the DRY principle, so it really bothers me when I have to duplicate code.

    Read more →

  • September 28, 2011

    Snook’s SMACSS

    Snook’s Scalable and Modular Architecture for CSS

    Read more →

  • September 1, 2011

    Adaptive Images

    Check out Adapative-Images.com for a great way to serve appropriately sized, responsive, cached images to mobile devices. Rad!

    Read more →

  • August 18, 2011

    CSS-based ajax loader spin

    Check out spin.js, a CSS-based spinner image for ajax loading. No more image.

    Read more →

  • July 13, 2011

    WordPress Plugin: Clear Widget

    A very simple WordPress plugin that outputs a clearing <div>. You may configure the CSS class and height and disable inline style output. Useful when you want to ensure that a widget clears its predecessor where the predecessor’s contents are dynamic.

    Read more →

  • June 19, 2011

    Yoast SEO now allows import from All in One SEO and others

    I’ve been using All in One SEO for years, and Yoast’s SEO plugin is making some headway. I’d like to start using it, but haven’t taken the plunge since there was no way to easily migrate that data. Sure, I could’ve analyzed both plugins and done some database work or manually migrated the data. But [...]

    Read more →

  • June 13, 2011

    MODX Web Development – Second Edition

    Packt Publishing has released a new edition of MODX Web Development – Second Edition. Though I rarely use MODX these days, I do still consider it a valuable and quality CMS. Clients have found it pretty intuitive, especially for basic edits and updates. If you’re interested in getting started with or just learning about MODX, [...]

    Read more →

  • November 12, 2009

    PHP: Use echo over print

    I’ve been theming the hell out of a few drupal sites lately, and I’ve decided to use echo over print in all my theme files.

    Read more →

  • November 12, 2009

    Wrap HTML Text Around Non-Rectangular Shapes

    Just found this from The Idea Shower: CSS Text Wrapper. It lets you wrap text around non-rectangular objects, which is usually undoable in HTML.

    Read more →

  • November 9, 2009

    Drush: Command Line Drupal Stuff

    I just came across Drush, a drupal command line utility. Sounds like something I should’ve checked into a long time ago. At least I do use the shell for a good amount of my work, but it looks like Drush could even further speed things up for me.

    Read more →