Daily archives: April 7th, 2009

Does your theme have children?

When working with WordPress theme frameworks or any parent theme, sometimes you might want to figure out whether a child theme is active or not. Here’s a quick function that’ll do exactly that: function has_kids() { if (STYLESHEETPATH !== TEMPLATEPATH) return true; return false; } if ( has_kids() ) { // do stuff } This function works whether you call it from a ... Read More

About Ptah

I’m a 21 year old web developer, entrepreneur, and founder of Design by Craftsmen, web creative studio specializing in custom WordPress solutions. Get to know me.

Twitter