<?php // load parent theme CSS
function load_parent_theme_css() {
wp_enqueue_style( 'parent-theme', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'load_parent_theme_css' );
?>
Whenever you create a child theme in future, seriously consider enqueuing your parent theme’s CSS instead of @importing it.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.