Tagged: shop
-
AuthorPosts
-
November 18, 2021 at 12:21 pm #1329491
Hi, in my shop http://www.toyasanarchy.com, when trying to buy the viewing the product https://www.toysanarchy.com/product/tenebris/ from mobile I find deformed images, both on iphone (you can see it here: https://www.toysanarchy.com/wp-content/uploads/2021/11/tenebris-iphone.jpg) and on android, (you can see it here https://www.toysanarchy.com/wp-content/uploads/2021/11/tenebris-android.jpg :) can you help me please? thanks gianluca
November 19, 2021 at 5:12 am #1329591Hey sitibus,
Thank you for the inquiry.
Looks like you are using a third party plugin to display a 360 version of the product image. We are not able to reproduce the issue on a browser device emulation as shown in the screenshot below, but you might be able to prevent the image from stretching by applying a maximum height to it.
#main #container.wc360-container { width: 100%; max-height: 300px; }
This is how the product page looks on our end. https://imgur.com/NRJ8DUN
Best regards,
IsmaelNovember 23, 2021 at 12:55 pm #1330101Thanks but that’s not what I want. I would like to have the image as wide as the screen of the mobile phone is not possible? And why is there a magnifying glass, can it be removed? Thanks Gianluca
November 24, 2021 at 3:48 am #1330209Hi,
Thank you for the update.
You can use this css to adjust the width of the main image container, which should also increase the width of the 360 image.
#top.single-product .single-product-main-image { width: 100%; }
Make sure to place the code inside one of the css media queries for mobile view.
Best regards,
IsmaelNovember 24, 2021 at 1:40 pm #1330296I tried with 90% and the result is almost ok,
but the lower part of the image is cut can you help me?November 25, 2021 at 9:32 am #1330422Hi,
Thank you for the info.
The rest of the image is not visible because of this css code.
#main #container.wc360-container { width: 100%; max-height: 300px; }
You have to remove the max-height property and make sure to place the code inside a css media query.
Example:
@media only screen and (max-width: 767px) { /* Add your Mobile Styles here */ }
Best regards,
IsmaelNovember 25, 2021 at 11:57 am #1330431I did:
media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
#main #container.wc360-container {
width: 100%;
}
#top.single-product .single-product-main-image {
width: 100%;
}
}Now with android it’s all ok while with iPhone is strecthed vertically. What couldd I do?
November 25, 2021 at 2:51 pm #1330482Hi,
You might have to define the maximum height of the 360 container again, but only for mobile view. Look for this code.
#main #container.wc360-container { width: 100%; }
And replace it with:
#main #container.wc360-container { width: 100%; max-height: 400px; }
Adjust the max-height value as necessary.
Best regards,
IsmaelNovember 26, 2021 at 10:51 am #1330574Hi, I tride this:
@media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
#main #container.wc360-container {
width: 100%;
max-height: 460px;
}
#top.single-product .single-product-main-image {
width: 100%;
height: 100%;
}
}On android mobiles runs fine but on iOS is still strecthed vertically. Any idea?
November 29, 2021 at 12:01 am #1330761Hi,
When I check in Windows Chrome DevTools, the .current-image has a height of 95vh breaking out of the .wc360-container Please see the screenshot in the Private Content area.
In this screenshot you will see the image (blue area) goes behind the title and the bottom of the image is hidden, so this is the “OK” Android view, in Safari DevTools on a Mac the same 95vh stretchs the image even more. In my test changing the 95vh to 480px corrected this for both, so please try this css:@media only screen and (max-width: 767px) { #wrap_all #main .threesixty .threesixty_images img.current-image { max-height: 480px!important; } }
After applying the css, please clear your browser cache and check.
Please note that testing with iPads & iPhones can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.Best regards,
MikeNovember 29, 2021 at 7:09 pm #1330882You’re great. Now it’ perfect in every mobile :-)
Now can you suggest me how to add a space between the gallery and the button ADD TO CART in mobikle version? I tried with separator and so on but it does’nt work (imaged visible here: https://www.toysanarchy.com/wp-content/uploads/2021/11/33ce9d2f-cf60-47aa-90f3-ed19ccb20ade.jpg)November 30, 2021 at 1:23 pm #1330993 -
AuthorPosts
- You must be logged in to reply to this topic.