-
-
Save Kaiderella/642c9c567da0792b085541682302c339 to your computer and use it in GitHub Desktop.
Chèn file CSS tùy biến vào các trang của WooCommerce
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','wpcb_load_woocommerce'); | |
function wpcb_load_woocommerce() { | |
if( is_page(array( 'shop', 'cart', 'checkout' ) ) or 'product' == get_post_type() ) { | |
wp_enqueue_style( 'wpb-woo', get_stylesheet_directory_uri() . '/css/woocommerce.css', '', '3', 'all'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment