Column Class Generator

The Genesis stylesheet has a great feature called Column Classes. This allows you to easily break a page’s content into multiple columns.

But if you’re like me, you’ll receive design files from the client’s designer and she’s using a grid of her own. You should then update the CSS of the column classes to match this grid, but that can be a big hassle (and a lot of math).

I’ve done the hard work for you! Simply drop the page’s width and gutter (space between columns) in here, and it will create the column classes for you. You can then copy/paste it into your own theme.

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk

Reader Interactions

Comments are closed. Continue the conversation with me on Twitter: @billerickson

Comments

  1. Clifton Griffin says

    So, you’re saying this is easier than going to the Bootstrap 2.x customizer, changing the base gutter and column size, generating it, unzipping it, finding the column classes, and then manually copying and pasting over the new values, doing the class conversion in your head. (ie, span4 = one-third)?

    I happen to have done that two or three times this week, by happenstance.

    This is an awesome utility. And nearly perfect timing 🙂

    Clif

  2. Keith Davis says

    Thanks for sharing Bill.
    I used column classes for the first time on my latest post and then I see this.
    Column classes everywhere.

  3. Marcy Diaz says

    It worked perfectly. Next time, I’ll use it before I do the math myself. Thank you!

  4. Zach Russell says

    Man, I feel like you read people’s minds when you publish content 🙂 I am in the process of building a wp.org theme and I was thinking about integrating this exact thing into it 🙂

    thanks!

  5. Vijay Sharma says

    It worked like a charm. Its so amazing when you can get away without having to do the math