A Better Way to Modify WordPress Themes

In the last cou­ple days, I’ve been get­ting a jones to prac­tice my CSS skillz a bit more. But I haven’t really felt like build­ing a whole ‘nother theme from scratch (I’ve already built two that I haven’t quite fin­ished and never implemented–perhaps I’ll dust those off and see if some­body can help me fin­ish them up).

In any case, my first incli­na­tion is to keep my cur­rent theme and just redo the CSS for it. Which isn’t a bad idea: I like my theme, and I like the con­tent it provides. 

But my theme is a bit com­plex and it’s not really designed to be modded–I’d spend most of my time try­ing to fig­ure out which div is what and where what goes, the kind of stuff you know if you built the whole thing, but you’ve got to dig through if you’re modding.

So I started look­ing into Word­press frame­works, stuff that’s already built and designed to built on top of. I installed the following:

  • Car­ring­ton JAM 
  • White­board
  • Blue­print
  • The­matic

The first three just didn’t do it for me. I want some­thing with some good seman­tic class/id tags on every­thing so I can mark it all up w/o being con­fused. Most of the top themes had decent class tags but not great. For exam­ple, in a cou­ple of them, post titles were just marked as h2s w/​o any class. 

To me, that just seems crazy.

The­matic, on the other hand, had scads of markup all over the place–it looked like it would be perfect.

And then, I read about child themes.

This is awesome–you can cre­ate a ‘new’ theme using another theme as a base: WP will look in the child theme’s folder for any­thing new, but will fall back to the orig­i­nal, ie. par­ent, theme. Use CSS’s @import url to import the original/​parent style sheet and you’ve got all of the orig­i­nal theme with­out any of the mess.

That means you can really sim­ply make addi­tions or changes to ANY theme you find with­out wreck­ing the orig­i­nal and with­out hav­ing to wade through some­body else’s CSS to get to where you want to be.

This is FANTASTIC. The­matic is cool because it’s built for this: it just pro­vides a really basic frame­work for putting these things together, but you can use this on any theme, cre­ate a child theme almost imme­di­ately. This is going to save me some time in the long run, I guarantee it.

Word­Press Child Theme Basics

This entry was posted in web. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>