Last active
December 24, 2018 01:35
-
-
Save woogists/bdd2a926e000f72bed3217200f203d53 to your computer and use it in GitHub Desktop.
[Theming Snippets] Enqueue your own stylesheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enqueue your own stylesheet | |
*/ | |
function wp_enqueue_woocommerce_style(){ | |
wp_register_style( 'mytheme-woocommerce', get_template_directory_uri() . '/css/woocommerce.css' ); | |
if ( class_exists( 'woocommerce' ) ) { | |
wp_enqueue_style( 'mytheme-woocommerce' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'wp_enqueue_woocommerce_style' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment