Jump to content

Archived

This topic is now archived and is closed to further replies.

jane

Child theme - @import url?

Recommended Posts

jane

I have a question about child themes.

 

I am now using the Skeleton child theme on all of my sites. I  added all of my custom coding to the style.less file (I don't use the style.css file.) According to the Wordpress Codex http://codex.wordpress.org/Child_Themes , you must add the @import url (ie. @import url("../themenamehere/style.css");) above all of your custom code in the style.css file.

 

Does this rule apply to the style.less file as well? I have not added an @import url to any of my style.less files and would like to know if I should or if this only applies to the style.css file.

 

Thank you

Share this post


Link to post
Share on other sites
Simon
1. there is no css in the parent css file, therefore pointless adding @import
2. style.less is picked up by DMS and auto compiled in to the main css, therefore no need to @import that either, also your browser would not know what to do with a .less file if you did @import it.

Share this post


Link to post
Share on other sites
Danny

Thanks for informing us the issue has been resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×