Want to switch from @import to wp_enqueue for style.css plus more in child theme
-
Hey guys! So I’ve searched extensively throughout the forums, google and youtube tutorials, and I can’t for the life of me figures this out, so hopefully one of you can help.
Put simply, I’ve been using the @import in my child theme’s style.css, and have found out that this is a big no-no, so I know I should use wp_enqueue in the functions.php to do this instead. I’ve tried all sorts of permutations of code I’ve found online and can’t get anything to work (it always breaks the site, especially on mobile for some reason).
So what’s the ideal way to use the style.css in my child theme, as well as say another specific css file in my child theme? [I have a “responsive.css” file in my child that I would like to enqueue as well.]
My site is olivermacdonald.tv and it uses the Salient theme found on Themeforest.net. I appreciate any and all help.
- The topic ‘Want to switch from @import to wp_enqueue for style.css plus more in child theme’ is closed to new replies.