Title: @import in CSS comment (Genesis)
Last modified: September 15, 2016

---

# @import in CSS comment (Genesis)

 *  Resolved [iWPer](https://wordpress.org/support/users/iwordpresser/)
 * (@iwordpresser)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/import-in-css-comment-genesis/)
 * Hi,
 * Great plugin!!! Thank you!
 * In version 2.1.0 (coming from 2.0.2), Autoptimize reads/prints (some) CSS as 
   CSS, even if it resides inside a CSS comment.
 * For example, the Genesis framework starts its CSS file with a comment containing
   a warning:
 * /* # WARNING
 * This file is part of the core Genesis Framework. DO NOT edit this file under 
   any circumstances. Please do all modifications in the form of a child theme.
   
   Copy the contents of this file to the child theme. Do not use [@import](https://wordpress.org/support/users/import/),
   as the CSS included with Genesis might change in the future.
 * */
 * Where “_[@import](https://wordpress.org/support/users/import/), as the CSS included
   with Genesis might change in the future._” is recognized as CSS and used in the
   minimized/combined CSS file. This results in:
 * [@import](https://wordpress.org/support/users/import/), as the CSS included with
   Genesis might change in the future.@import url(//fonts.googleapis.com/css?family
   =Lato:300,400,700);
 * Which should have been:
 * [@import](https://wordpress.org/support/users/import/) url(//fonts.googleapis.
   com/css?family=Lato:300,400,700);
 * I hope this can be fixed in a new version.
 * Thank you

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/import-in-css-comment-genesis/#post-8187885)
 * ok, I’ll look into that. but is this a regression (as in; did no happen in 2.0.2)
   or did you just happen to notice this now?
 * frank
 *  Thread Starter [iWPer](https://wordpress.org/support/users/iwordpresser/)
 * (@iwordpresser)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/import-in-css-comment-genesis/#post-8187922)
 * Thanks.
 * This did not happen in 2.0.2. I noticed and checked after the update messed up
   the layout, because the font was not loaded.
 * Regards
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/import-in-css-comment-genesis/#post-8189190)
 * ok [@iwordpresser](https://wordpress.org/support/users/iwordpresser/), I was 
   able to reproduce and [have this (potential) fix in on Github](https://github.com/futtta/autoptimize/commit/235840a86f01d80c852859611b741fd9a1c623d5);
   could you test (just 2 characters to change in autoptimize/classes/autoptimizeStyles.
   php) to confirm?
 * frank
 *  Thread Starter [iWPer](https://wordpress.org/support/users/iwordpresser/)
 * (@iwordpresser)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/import-in-css-comment-genesis/#post-8193661)
 * Hi Frank,
 * Your fix worked for me! Thank you for your quick help!!
    Can I use this fix now
   and expect the next update to include it?
 * Have a good weekend!
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/import-in-css-comment-genesis/#post-8193962)
 * > Your fix worked for me! Thank you for your quick help!!
 * great, thanks for confirming!
 * > Can I use this fix now and expect the next update to include it?
 * yes and yes 🙂
 * have a nice weekend,
    frank

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘@import in CSS comment (Genesis)’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [genesis](https://wordpress.org/support/topic-tag/genesis/)
 * [Import](https://wordpress.org/support/topic-tag/import/)

 * 5 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/import-in-css-comment-genesis/#post-8193962)
 * Status: resolved