Quantcast
Channel: Topic Tag: mobile | WordPress.org
Viewing all articles
Browse latest Browse all 22088

jnette3 on "[Plugin: WooCommerce - excelling eCommerce] Change layout small screen friendly breakpoint from 768px to 760px"

$
0
0

Hello,
Firstly, thank you so much for all your support on this forum!

So.. Woocommerce changes the layout to "small screen friendly" when the width is 768px or under.
This feature clashes with my theme, as my layout changes to "small screen friendly" at 760, not 768.
(I prefer 760 over 768, because iPad's portrait view is 768px wide, and I think iPad's screen is still too large for a "small screen friendly" view, and therefore 768px is too soon to activate it.)

I located the code responsible for this, it's at:
woocommerce/includes/class-wc-frontend-scripts.php
line number 32
Specifically: $breakpoint = '768px'

When I change the number above to 760, it fixed the issue, but i'm in need of a more permanent solution.
I was hoping someone could help me write a code for my theme's functions.php, which will change 768 to 760, even after woocommerce gets updated, etc.
I'd really really appreciate your help.. :)
Thank you so much,

Love,
Jeanette

https://wordpress.org/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 22088

Trending Articles