Home › Forums › WoodMart support forum › Huge variables on single page mobile version
Huge variables on single page mobile version
- This topic has 10 replies, 2 voices, and was last updated 4 months, 1 week ago by
Bogdan Donovan.
-
AuthorPosts
-
December 1, 2024 at 5:28 pm #618178
k6595177ParticipantHi There,
I chose on swaters setting – xxl
Anf its looks great on all the verstion.
Buy just on mobile version in single page its looks huge.
Need your help to decrease it here.Thanks.
Attachments:
You must be logged in to view attached files.December 2, 2024 at 1:16 pm #618395
Bogdan DonovanKeymasterHi,
Try to add the following custom code to the Global Custom CSS area in the Theme Settings to reduce your switches from 90px to 45px on mobile. By modifying the “max-width” media query value, you can also choose from which screen width your switches on the single product page will start to reduce.
@media (max-width: 768px) { .product-image-summary [class*="wd-swatches"].wd-size-xxl { --wd-swatch-size: 45px; } }
Kind Regards
December 2, 2024 at 5:26 pm #618589
k6595177Participantthank you.
i already applied the code..now i just noticed that on desktop its worse too.
Attachments:
You must be logged in to view attached files.December 2, 2024 at 5:27 pm #618594
k6595177Participanton mobile it fine now.
December 2, 2024 at 5:39 pm #618617
Bogdan DonovanKeymasterIf the swatches seem too large on desktop, you can reduce their size using the “Swatch size” option (screenshot https://monosnap.com/file/m6W510Ekl8oUDGKMWuKbFLwlqDWTRM) in the attribute settings. Keep in mind that changing this option will cause the previously provided custom code to stop working, since it was based on the XXL swatch size.
To make it compatible with the new option, update the size class in the selectors of the custom code. For example:
• XXL: .wd-size-xxl
• XL: .wd-size-xlarge
• L: .wd-size-large
• M: .wd-size-mediumReplace the size class in your custom code with the class corresponding to the selected size. or example, if you choose XL as your new size, the updated custom code will look like this:
@media (max-width: 768px) { .product-image-summary [class*="wd-swatches"].wd-size-xlarge { --wd-swatch-size: 45px; } }
Kind Regards
December 2, 2024 at 5:50 pm #618625
k6595177Participanti changed the size to M
but now:
Mobile category page – tiny
Mobile single page – fineDesktop category page – tiny
Desktop product page – finejust the category page on both versions are tiny (mobile + desktop)
appreciate your help.
December 2, 2024 at 5:57 pm #618626
Bogdan DonovanKeymasterPlease, explain in more detail what you mean by “category page”? Is it true that it means switches located on products inside the product grid or carousels? Please provide screenshots for more clarity.
Kind Regards
December 2, 2024 at 6:09 pm #618645
k6595177Participantsorry,
when i saying category-page i mean the shop page.
like how the product shows on grid on the shop page.
so i mean that on single page its ok now (after i cahnged the size to M)
but on the shop page – the variations on the product layout its tiny (on mobile+desktop)Thank you
December 2, 2024 at 6:24 pm #618651
Bogdan DonovanKeymasterHi,
The size of switches M for products inside the product grid & carousels has the same size on desktop and mobile. To globally change it, use the following custom code:
body .wd-swatches-grid.wd-size-m { --wd-swatch-size: 30px; }
Kind Regards
January 1, 2025 at 1:29 pm #626547
k6595177ParticipantHi
still, on shop page (Desktop only) its looks tiny.
on product page (desktop+mobile) its looks fine.how can i increase the variable on shop page Desktop version only?
Attachments:
You must be logged in to view attached files.January 2, 2025 at 10:28 am #626665
Bogdan DonovanKeymasterHi,
Try using the following custom code to adjust the size of product grid swatches on the desktop devices:
@media (min-width: 1025px) { .wd-product .wd-swatch { --wd-swatch-w: 30px; --wd-swatch-h: 30px; } }
Add this code to the Global Custom CSS Area in Theme Settings, and modify the values to achieve the desired size. Let us know if you need further assistance!
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register