This topic has 6 replies, 2 voices, and was last updated 6 years ago ago by Rose Tyler
Hello,
I want to ask 2 questions.
1 – Currently, I set the maximum products to show at 28. Can I set it to 20 but only for mobile devices?
2 – Can I change the mobile menu navigation style to half-page slide from left. Example like this : https://ibb.co/n00zZf
If it requires some php/javascript customization, perhaps you can point it at me in what files I can tweak the codes.
Hello,
1) Try to add this code in functions.php of child theme:
if ( wp_is_mobile() ) {
add_filter( 'loop_shop_per_page', function ($cols) {
return 20; // mobile count of products
}, 20 );
}
2) Please check our demo https://www.8theme.com/demo/woopress/boxed/ there the mobile menu is similar to your desired result.
Looks like you made a lot of changes.
Our mobile menu based on et_get_mobile_menu
function (framework/theme-functions.php), css code from style.css, and code in js/etheme.js.
Regards
No 1 not working. Still shows total of 28 products per page.
For no 2, yeah it’s what I’m looking for. But, that style only available from latest theme version? Theme version 2.5 doesn’t have yet?
One more thing, your widget “8theme -Brands filter” , no option for dropdown? Only listing?
Hello,
1. Oh I see. Sorry, but there is no such possibility.
2. On our demo https://8theme.com/demo/woopress/boxed/ – http://prntscr.com/lql7oi
I think the menu looks in the similar way in 2.5 version. If you have an archive of 2.5 version without additional customization in files you can install it on a staging (test) site and check.
3. Yes, only listing.
Regards
I see.
Yeah lol for no 2, actually some custom CSS overwrite the default mobile slide right behaviour.
One last thing, I notice once the mobile menu is open, if I swipe to the left, the mobile menu close. What framework/plugin code you guys use for that one?
Because I want to enable swipe to the right to open the mobile menu.
Hello,
We do not have an additional library for this.
Here are screenshots how is created menu behavior in our theme https://prnt.sc/ltfmr8 (etheme.js) https://prnt.sc/ltfnav
Regards
You must be logged in to reply to this topic.Log in/Sign up