-
-
Save Kaiderella/c93d88c85ad18b5a36a69c8266ef6d25 to your computer and use it in GitHub Desktop.
Chèn file CSS tùy biến của WooCommerce vào theme
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
add_action( 'wp_enqueue_scripts', 'wp_enqueue_woocommerce_style' ); | |
function wp_enqueue_woocommerce_style(){ | |
wp_register_style( 'mytheme-woocommerce', get_stylesheet_directory_uri() . '/css/woocommerce.css' ); | |
if ( class_exists( 'woocommerce' ) ) { | |
wp_enqueue_style( 'mytheme-woocommerce' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment