trying to enqueue
-
Hi,
I am trying to create a child theme of eighties. I can’t get the style sheet to enqueue using function.php. I got this from the wordpress codex:
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );Is this this right? Can this method be used for the eighties theme?
Thank you for your help!
- The topic ‘trying to enqueue’ is closed to new replies.