• Resolved Scroot

    (@scroot)


    Hello. I am creating a custom site built upon the _s theme.

    The functions.php file seems to have a pretty straightforward call for registering the default stylesheet:

    wp_enqueue_style( 'style', get_stylesheet_uri() );

    My problem with this is that it seems all @import declarations within my stylesheet (which has been enqueued above) are ignored. That includes important things like web font imports and other stylesheet imports such as reset. Does anyone else have this problem, and/or a fix?

Viewing 1 replies (of 1 total)
  • Thread Starter Scroot

    (@scroot)

    Fixed.

    The problem was that all @import statements must come before any other CSS in the stylesheet. In my case, I had the reset not as an import, but as a built-in section (after which I was trying my imports).

Viewing 1 replies (of 1 total)
  • The topic ‘wp_enqueue_style ignores @imports?’ is closed to new replies.