topher

Have you ever opened the style.css file of a child theme and found something like this?

@import url("../make/style.css");

You don’t want that.  @import has a negative impact on page load, and it pulls in the stylesheet outside the enqueuing process.

Instead, put something like this inside your child theme’s functions.php file:

Then your child theme’s style.css file can hold only styles for your child theme, and the parent theme CSS is enqueued properly.

Leave a Reply

Your email address will not be published.