Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyarce/fdcfb4b0e1ec716c39e5a2705c53296c to your computer and use it in GitHub Desktop.
Save mikeyarce/fdcfb4b0e1ec716c39e5a2705c53296c to your computer and use it in GitHub Desktop.
Change the breakpoint for woocommerce-smallscreen.css
// Don't add this opening PHP tag unless your file doesn't already have one
<?php
// Define a new breakpoint for woocommerce-smallscreen.css
function marce_filter_woocommerce_style_smallscreen_breakpoint( $breakpoint ) {
$breakpoint = '200px';
return $breakpoint;
};
add_filter( 'woocommerce_style_smallscreen_breakpoint', 'marce_filter_woocommerce_style_smallscreen_breakpoint', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment