December 8, 2015 at 11:08 am
#40279
Theme Horse Support Team
Keymaster
Hi bruno,
As @import is the easy way to import css for the user which does not have any issue using this. For the developers who submit ticket in wordpress.org also use this way to import css. Yes you can import using hook too. Using hook is the best and the latest way to import css. If you are familier with code then you can use hook to import the css.
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
For more info you can visit here too
I will suggest that if you are good at coding then you can use action hook otherwise using @import would be ok.
Thank you!