Skip to content

Instantly share code, notes, and snippets.

@wp-freund
Forked from jameskoster/functions.php
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wp-freund/4a529b8bdbe725af767d to your computer and use it in GitHub Desktop.
Save wp-freund/4a529b8bdbe725af767d to your computer and use it in GitHub Desktop.
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