-
-
Save ofernandolopes/9d36edcecbcc3dffce49 to your computer and use it in GitHub Desktop.
WooCommerce - Custom CSS
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
<?php | |
function my_theme_woocommerce_enqueue_styles( $styles ) { | |
$base_url = str_replace( array( 'http:', 'https:' ), '', get_stylesheet_directory_uri() ) . '/inc/woocommerce/css/'; | |
$styles['woocommerce-layout']['src'] = $base_url . 'woocommerce-layout.css'; | |
$styles['woocommerce-smallscreen']['src'] = $base_url . 'woocommerce-smallscreen.css'; | |
$styles['woocommerce-general']['src'] = $base_url . 'woocommerce.css'; | |
return $styles; | |
} | |
add_filter( 'woocommerce_enqueue_styles', 'my_theme_woocommerce_enqueue_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment