See, this is what I thought. I didn't think that get_stylesheet_ had a fallback routine like get_template_part() has.<div><br></div><div>Chip<br><br><div class="gmail_quote">On Sat, Jan 22, 2011 at 12:29 PM, <span dir="ltr"><<a href="mailto:michael@mfields.org">michael@mfields.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/header.jpg"<br>
> alt="header image" /><br>
><br>
> If a child theme exists, it will use the one from the chlid theme<br>
> directory,<br>
> if child theme does not exist will grab from the parent theme<br>
<br>
</div>But this means that if a child theme exists, it must include<br>
/images/header.jpg. I made the function to allow for<br>
<br>
<img src="<?php echo artpress_file_locate( '/images/header.jpg' ); ?>"<br>
> alt="header image" /><br>
<br>
The file will always exist in the parent, but if a child theme adds<br>
header.jpg to its images folder, this will be used instead. This way it's<br>
optional to include the file in the child.<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></blockquote></div><br></div>