[theme-reviewers] Best Practice Question: style.css

Sami Keijonen sami.keijonen at foxnet.fi
Fri Aug 1 17:48:36 UTC 2014


Emil, is you example loading parent and child theme style.css allowed in
.org? It's seems handy way of loading parent theme's style.min.css file.


On 16 July 2014 22:36, Emil Uzelac <emil at uzelac.me> wrote:

> Empties are ugly and not really needed.
>
> This is what I do for my clients:
>
>     // Parent theme style.
>  wp_enqueue_style( 'my-style', get_template_directory_uri() .
> '/style.css', array(), null );
>  // Child theme style.
>     if ( is_child_theme() ) {
> wp_enqueue_style( 'my-child-style', get_stylesheet_uri(), array(), null );
>  }
>
> Parent style.css remains at the usual place and when child is active it
> will add it's own stylesheet :)
>
> And of course no @imports either ;)
>
>>
>>
>> _______________________________________________
>> 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
>
>


-- 
Sami Keijonen
Fox Holding Oy
sami.keijonen at foxnet.fi
foxnet.fi
foxnet-themes.fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140801/8f9a60c5/attachment.html>


More information about the theme-reviewers mailing list