Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rcstr/da8edcf4149d82019ca6 to your computer and use it in GitHub Desktop.
Save rcstr/da8edcf4149d82019ca6 to your computer and use it in GitHub Desktop.
<?
function rxc_enqueue_style() {
$theme_name = wp_get_theme()->get( 'Name' );
wp_register_style( 'library-styles', get_stylesheet_directory_uri() . '/css/library.css', array(), null, 'all' );
wp_register_style( 'another-library-styles', get_stylesheet_directory_uri() . '/css/library-2.css', array(), null, 'all' );
wp_register_style( $theme_name, get_stylesheet_uri(), array( 'library-styles', 'another-library-styles' ), null, 'all' );
wp_enqueue_style( $theme_name );
}
add_action( 'wp_enqueue_scripts', 'rxc_enqueue_style' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment