Skip to content

Instantly share code, notes, and snippets.

View functions.php
<?php
add_filter( 'woocommerce_enqueue_styles', 'my_woocommerce_styles' );
function my_woocommerce_styles($styles){
unset($styles['woocommerce-layout']);
unset($styles['woocommerce-smallscreen']);
$styles['woocommerce-layout'] = array(
'src' => get_stylesheet_directory_uri() . '/woocommerce-layout.css',
'deps' => '',
'version' => '1.0.0',
'media' => 'all'
View functions.php
<?php
add_filter( 'woocommerce_enqueue_styles', 'my_woocommerce_styles' );
function my_woocommerce_styles($styles){
unset($styles['woocommerce-layout']);
unset($styles['woocommerce-smallscreen']);
$styles['woocommerce-layout'] = array(
'src' => get_stylesheet_directory_uri() . '/woocommerce-layout.css',
'deps' => '',
'version' => '1.0.0',
'media' => 'all'
@Dijkie
Dijkie / functions.php
Created Dec 2, 2015 — forked from alexisnomine/functions.php
WooCommerce 2.1 Mobile First Responsive Layout
View functions.php
<?php
add_filter( 'woocommerce_enqueue_styles', 'my_woocommerce_styles' );
function my_woocommerce_styles($styles){
unset($styles['woocommerce-layout']);
unset($styles['woocommerce-smallscreen']);
$styles['woocommerce-layout'] = array(
'src' => get_stylesheet_directory_uri() . '/woocommerce-layout.css',
'deps' => '',
'version' => '1.0.0',
'media' => 'all'
View functions.php
<?php
add_filter( 'woocommerce_enqueue_styles', 'my_woocommerce_styles' );
function my_woocommerce_styles($styles){
unset($styles['woocommerce-layout']);
unset($styles['woocommerce-smallscreen']);
$styles['woocommerce-layout'] = array(
'src' => get_stylesheet_directory_uri() . '/woocommerce-layout.css',
'deps' => '',
'version' => '1.0.0',
'media' => 'all'