Home › Forums › WoodMart support forum › There is no switching function for mobile product images
There is no switching function for mobile product images
- This topic has 8 replies, 2 voices, and was last updated 2 months, 3 weeks ago by
Luke Nielsen.
-
AuthorPosts
-
December 14, 2024 at 10:01 pm #622508
ha21cnParticipantI created a Single Product Layout in Layout, set the Product Gallery to Bottom grid, and turned on the Main carousel with pagination. On the computer, I can use the arrows to switch product images normally, but I don’t know why it doesn’t work on mobile phones and tablets. Can display arrows and switch pictures
Below is a video demonstration
https://drive.google.com/file/d/1g1pbD_GjYeJRsLJoM1ATmo1CbpAdZon4/view?usp=sharingAttachments:
You must be logged in to view attached files.December 16, 2024 at 4:15 pm #622890
Luke NielsenKeymasterHello,
Try to use the code below to show the arrows on mobile.
.single-product .pswp--touch [class*="pswp__button--arrow--"] { visibility: visible; }
Clear the cache and recheck the issue.
Kind Regards
December 16, 2024 at 5:48 pm #622923
ha21cnParticipantI have a question, can I set the Main Carousel image to use Full Size on the website instead of the thumbnail format generated by Woocommerce?
December 17, 2024 at 12:11 am #623007
ha21cnParticipantI have another question. When you click on the black background area on the computer, you can automatically exit the picture browsing. But why can’t you click on the black area on the mobile phone to exit the picture browsing?
December 17, 2024 at 3:56 pm #623234
Luke NielsenKeymasterHello,
1. Unfortunately, we do not have such functionality in Theme Settings to disable it.
2. Sorry but the Photoswipe library works in such a way – https://photoswipe.com/
Thank you for your time.
Kind Regards
December 17, 2024 at 8:12 pm #623347
ha21cnParticipantWoodmart comes with a Photoswipe popup feature that allows you to click on a black background to exit the image viewing feature, you can check out the video on how to do this. And when I use F12 on my computer, I can click on the black background to exit, but I don’t know why when I click on the black background area on my mobile, it doesn’t exit the image view!
https://drive.google.com/file/d/1gmS7sxERvunfhXXHWfq4a6VWH-5j2TSB/view?usp=sharing
The link above is a video of me in action.Attachments:
You must be logged in to view attached files.December 18, 2024 at 3:39 pm #623584
Luke NielsenKeymasterHello,
In the browser emulator of mobile device, you cannot close it by clicking on the black bg area – https://prnt.sc/dl5-uCC4X4ws. When you checking the mobile version in browser, you need to reupdate the page to make it work similarly to mobile.
As I mentioned above, the Photoswipe library works in such a way – https://photoswipe.com/
Also, why do you need to click on the black bg area if you can just swipe the image to close it? https://gyazo.com/e74ca4259439e3e3bd90d53199de24be
Kind Regards
December 18, 2024 at 9:33 pm #623711
ha21cnParticipantBecause I think the original image display logic is better than the feature you sent me, and seeing that you can click on the black background to close the view on the computer side, I’d like to see that on the mobile side as well.
One more question, if I want the background to be semi-transparent when the image is viewed, how do I set it?
December 19, 2024 at 5:57 pm #623987
Luke NielsenKeymasterHello,
Here is a custom CSS to make it a little bit transparent –
.single-product .pswp__bg { background: rgba(51,51,51,0.91); }
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register