[theme-reviewers] Child theme stylesheet

Emil Uzelac emil at uzelac.me
Thu Feb 6 13:44:27 UTC 2014


There's nothing wrong with this I use it to avoid @import.
On Feb 6, 2014 7:13 AM, "Ola Łączek" <ola at bodera.com> wrote:

> Hello!
>
> I've got a quick question - should authors include piece of code like this
> in themes? I can't see the point, WordPress handles this on it's own after
> all.
>
>     // Load style.css from child theme
>     if (is_child_theme()) {
>         wp_enqueue_style('infinite-child', get_stylesheet_uri(), false,
> null);
>     }
>
> Best regards,
> Ola Laczek
>
> _______________________________________________
> 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/20140206/35f93838/attachment-0001.html>


More information about the theme-reviewers mailing list