Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WP-Child-Theme: CSS in function.php
function twentyseventeen_child_styles() {
wp_deregister_style( 'twentyseventeen-style');
wp_register_style('twentyseventeen-style', get_template_directory_uri(). '/style.css');
wp_enqueue_style('twentyseventeen-style', get_template_directory_uri(). '/style.css');
wp_enqueue_style( 'childtheme-style', get_stylesheet_directory_uri().'/style.css',
array('twentyseventeen-style') );
add_action( 'wp_enqueue_scripts', 'twentyseventeen_child_styles' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.