Site logo

[Resolved] @import no longer standard

Home Forums Support [Resolved] @import no longer standard

Home Forums Support @import no longer standard

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #200859
    albabes

    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’);

    #200869
    Tom
    Lead Developer
    Lead Developer

    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 🙂

    #200936
    albabes

    Thanks Sir.

    #200986
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.