Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Last active December 11, 2015 20:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jameskoster/4659396 to your computer and use it in GitHub Desktop.
Save jameskoster/4659396 to your computer and use it in GitHub Desktop.
WooCommerce - 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