Home › Forums › WoodMart support forum › Product grid on mobile
Product grid on mobile
- This topic has 11 replies, 5 voices, and was last updated 6 years, 4 months ago by Elise Noromit.
-
AuthorPosts
-
May 1, 2018 at 7:40 pm #55604
nephyhlimParticipanthey guys
whats the trick to show two products on mobile when product grid is used so I want it to show like on pic 1 and not pic 2
THX
Attachments:
You must be logged in to view attached files.May 2, 2018 at 6:51 am #55635
Bogdan DonovanKeymasterHi,
Could you re-upload your second image with the desired responsive layout of the product carousel? Also, please provide the link to your page with product carousel, so we can check its settings.
Regards
May 2, 2018 at 6:57 am #55637
nephyhlimParticipantHey
sorry, the desired layout is number one picture above from the toys demo. The second pic is not of importance just show how it is now on:
May 2, 2018 at 7:48 am #55644
Eric WatsonParticipantHello,
Try to add the following PHP code snippet to the child theme functions.php file to do this
function woodmart_get_owl_items_numbers( $slides_per_view ) { $items = array(); $items['desktop'] = ( $slides_per_view > 0 ) ? $slides_per_view : 1; $items['desktop_small'] = ( $items['desktop'] > 1 ) ? $items['desktop'] - 1 : 1; if ( $items['desktop'] == 6 ) $items['desktop_small'] = 4; $items['tablet'] = ( $items['desktop_small'] > 1 ) ? $items['desktop_small'] : 1; $items['mobile'] = ( $items['tablet'] > 2 ) ? $items['tablet'] - 2 : 1; if( $items['mobile'] > 2 ) { $items['mobile'] = 2; } $items['mobile'] = 2; return $items; }
Kind Regards
XTemos StudioMay 2, 2018 at 8:04 am #55645
nephyhlimParticipantHI Eric
it already worked when I imported the product grid and demo toys out of the box. Unfortunately I deleted the columns.
I am also not able to import the product grid anymore because I already imported it and deleted it. ;-(
So there has to be a setting that shows those two products on mobile.
Whats the seting on the toys demo?
May 2, 2018 at 8:16 am #55649
Eric WatsonParticipantBy default, the demo toys version has a 5 products per view for the carousel. If you want 2 columns on mobile you need to set 5 product on the desktop.
https://prnt.sc/jcnuxzKind Regards
May 2, 2018 at 8:33 am #55650
nephyhlimParticipantHey Eric
thank you very much that was it. Weird that is showing 2 on mobile when 5 selected 😉
Would be great if you add this as a setting.
Have a great day!
May 2, 2018 at 8:35 am #55651
Eric WatsonParticipantYou are welcome! We will consider it as a feature request and will add it in one of our future updates.
Kind Regards
July 19, 2018 at 5:03 am #68328
nephyhlimParticipantHey there
I want to edit my former posts because I have links pointing to my page wchich I would like to delete. However I cant find where I can edit old posts (see img attached)
Really weird maybe I have two accounts?
Attachments:
You must be logged in to view attached files.July 19, 2018 at 6:23 am #68347
Artem TemosKeymasterHi,
OK, we removed this link.
July 20, 2018 at 5:16 am #68519
nephyhlimParticipantHey there
thank you that is awesome. Could oyu also remove the links to my site here:
https://xtemos.com/forums/reply/64504/
https://xtemos.com/forums/topic/always-visible-filter-on-mobile/https://xtemos.com/forums/reply/55637/
https://xtemos.com/forums/topic/product-grid-on-mobile/https://xtemos.com/forums/reply/64504/
https://xtemos.com/forums/topic/sticky-product-just-on-one-page/
Thank you very much and have a great weekend!
July 20, 2018 at 7:03 am #68537
Elise NoromitMemberHello,
The links have been deleted.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register