[theme-reviewers] Child themes discussion

Philip M. Hofer (Frumph) philip at frumph.net
Sat Jan 22 18:24:44 UTC 2011


if you do

<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/header.jpg" 
alt="header image" />

If a child theme exists, it will use the one from the chlid theme directory, 
if child theme does not exist will grab from the parent theme



----- Original Message ----- 
From: <michael at mfields.org>
To: <theme-reviewers at lists.wordpress.org>
Sent: Saturday, January 22, 2011 10:21 AM
Subject: Re: [theme-reviewers] Child themes discussion


>> I don't know of a good way to allow image/css file overrides in a
>> child, since you need the URL of them. Maybe somebody else can
>> enlighten me?
>
> I was never able to find a good solution in core, but put this function
> together last year http://wordpress.pastebin.com/1fkvPTTj to allow parent
> files to be overridden in child themes.
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> 




More information about the theme-reviewers mailing list