[wp-forums] My Child Theme has no CSS!

Marius Jensen funman at gmail.com
Thu Aug 14 18:37:01 UTC 2014


I think it was done intentional, the @import is a legacy thing for before
when themes didn't use wp_enqueue_style() to get their CSS added.

The correct approach is to NOT use @import and let the stylesheets be
loaded in wp_head() the right way.



On Thu, Aug 14, 2014 at 8:33 PM, andrew nevins <andrew.nevins.misc at gmail.com
> wrote:

> Has anyone noticed the amount of people creating Child Themes with the
> '@import' line commented out in their style.css file? And those people
> complaining that they have no CSS?
>
> I didn't realise it, but the Codex resource on Child Themes had this
> '@import' line commented out and above it was a comment saying something
> along the lines of "uncomment out the import line if you're using a new
> theme".
>
> I've took out that and reverted it back to how it was.
>
>
> http://codex.wordpress.org/index.php?title=Child_Themes&diff=145568&oldid=144786
>
> I'm not sure how this Codex discussion thing works but I've tried to notify
> the person who made this change:
> http://codex.wordpress.org/User_talk:Ryanr14
> _______________________________________________
> wp-forums mailing list
> wp-forums at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-forums
>



-- 
Regards
Marius Jensen


More information about the wp-forums mailing list