Skip to content

Instantly share code, notes, and snippets.

@mjangda
Last active October 6, 2015 10:17
Show Gist options
  • Save mjangda/2978185 to your computer and use it in GitHub Desktop.
Save mjangda/2978185 to your computer and use it in GitHub Desktop.
Properly queueing parent and child style.css, props Viper007Bond
<?php
add_action( 'wp_enqueue_scripts', function() {
wp_register_style( 'parent-theme', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme', get_stylesheet_uri(), array( 'parent-theme' ) );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment