Site logo

Archived topic

@import no longer standard

3 replies · Started by albabes on June 10, 2016

Viewing posts 1–4 of 4

Hi Tom
Im noticing you telling folk to get rid of @import line in child themes, and your statements about it neinbg no longer a standard?

Do you know a URL I can read about that, yours included?

Remove this line from your child CSS in “Appearance > Editor”:
@import url('../generatepress/style.css');

Hi there,

@import isn't good for performance - if you Google "@import bad performance" you'll find some articles on that.

GP detects if you're using a child theme and includes the parent CSS file for you, making the @import unnecessary :)

Thanks Sir.

No problem :)

This archived topic is closed to new replies.