Woocommerce load woocommerce-smallscreen.css
at max-width 768px. How can I change it to 767px? I use this css file so I want it to be loaded but also change somehow this media query breakpoint.
I searched for this media query in woocommerce css files but I didn't find this phrase which I see in chrome devtools: media="only screen and (max-width: 768px)"
Add this Woocommerce filter in functions.php.
// Change Woocommerce css breaktpoint from max width: 768px to 767px
add_filter('woocommerce_style_smallscreen_breakpoint','woo_custom_breakpoint');
function woo_custom_breakpoint($px) {
$px = '767px';
return $px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With