Skip to content

Instantly share code, notes, and snippets.

@ofernandolopes
Forked from claudiosanches/functions.php
Last active August 29, 2015 14:21
Show Gist options
  • Save ofernandolopes/9d36edcecbcc3dffce49 to your computer and use it in GitHub Desktop.
Save ofernandolopes/9d36edcecbcc3dffce49 to your computer and use it in GitHub Desktop.
WooCommerce - Custom CSS
<?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