[theme-reviewers] Child themes discussion
Philip M. Hofer (Frumph)
philip at frumph.net
Sat Jan 22 18:14:09 UTC 2011
I use get_stylesheet_directory() and _uri to check if intended images in the child exist, if they do then use those instead of the main one, but only on select cases, basically for theme'ing situations.
As well as when i'm doing directory searches for 'sets' like navigation sets I check the if child theme function first
if is_child_theme() or something like that, not in front of code at the moment
----- Original Message -----
From: Chip Bennett
To: theme-reviewers at lists.wordpress.org
Sent: Saturday, January 22, 2011 10:12 AM
Subject: Re: [theme-reviewers] Child themes discussion
Right... but I don't think it is true that the Child Theme will *always* want to call its own files.
Or, is the issue that, if the Parent Theme uses get_stylesheet_, it will *prevent* the Child Theme from calling the Parent Theme's resources?
So, are we saying that for Themes that are *intended* to be Child-Theme ready, they must use get_template_, rather than get_stylesheet_, in all instances?
Chip
On Sat, Jan 22, 2011 at 12:01 PM, Edward Caissie <edward.caissie at gmail.com> wrote:
IIRC (just heading out the door) ...
_template_ calls the parent (first, or current) whereas _stylesheet_ calls current (first?) only
Cais.
On Sat, Jan 22, 2011 at 12:50 PM, Chip Bennett <chip at chipbennett.net> wrote:
Again: it *may*, or *may not*, depending on context.
(Or is it more cut-and-dry than I think it is?)
Chip
On Sat, Jan 22, 2011 at 11:46 AM, Simon Prosser <pross at pross.org.uk> wrote:
On 01/22/11 17:44, Chip Bennett wrote:
> No, that's all good. It would be difficult for Theme Check to determine the
> appropriateness of get_template_ vs get_stylesheet_ within the Theme itself,
> because appropriateness will depend on context: would a Child Theme need to
> access its own files, or the Parent Theme's files?
ok, so what about a check for get_template_(uri|directory) and if found
tell the user his theme will not support child themes
--
My Blog: http://www.pross.org.uk/
Plugins: http://www.pross.org.uk/plugins/
Themes : http://wordpress.org/extend/themes/profile/pross
_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers
_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers
_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers
------------------------------------------------------------------------------
_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110122/eac01d99/attachment-0001.htm>
More information about the theme-reviewers
mailing list