Home › Forums › WoodMart support forum › Overlapping pricing on Mobile phone
Overlapping pricing on Mobile phone
- This topic has 8 replies, 2 voices, and was last updated 8 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
July 5, 2024 at 5:24 pm #581348
djordjejeremicmadParticipantHi there, i have a problem with overlapped pricing between old and new price on Mobile phone. On different device dimensions, the price is displayed differently. (the space between the new and old price)
Screenshot attached.
Can you help me solve this problem?
Attachments:
You must be logged in to view attached files.July 6, 2024 at 9:30 am #581425
Aizaz Imtiaz AwanKeymasterHello,
I am unable to visit your site. Please remove the IP restrictions. We are accessing the site from Pakistan. So I will check and give you a possible solution.
https://ibb.co/KqtJV7mBest Regards.
July 6, 2024 at 10:47 am #581448
djordjejeremicmadParticipantHey there, sorry for that one, you can access it now.
July 6, 2024 at 1:40 pm #581496
Aizaz Imtiaz AwanKeymasterHello,
Please try to add the following CSS to your site in Theme Settings > Custom CSS. This will adjust the space between the old and new prices across different device dimensions.
@media only screen and (max-width: 767px) { body .price ins .amount { margin-left: 10px; } } @media only screen and (min-width: 768px) and (max-width: 1024px) { body .price ins .amount { margin-left: 15px; } }
Best Regards.
July 6, 2024 at 2:25 pm #581518
djordjejeremicmadParticipantSo it looks good on some, but when i access it through Chrome on my iPhone 14 pro, the space on the Product Page is still too big.
Sending screenshots.Attachments:
You must be logged in to view attached files.July 6, 2024 at 3:42 pm #581525
Aizaz Imtiaz AwanKeymasterHello,
Please add the following CSS to your site
@media only screen and (max-width: 767px) { body .price ins .amount { margin-left: 10px; } } @media only screen and (min-width: 768px) and (max-width: 1024px) { body .price ins .amount { margin-left: 15px; } } /* Specific adjustment for iPhone 14 Pro */ @media only screen and (max-width: 430px) { body .price ins .amount { margin-left: 5px; } }
This should help maintain consistent spacing across different devices, including the iPhone 14 Pro. Change the value as per your requirements.
Best Regards.
July 6, 2024 at 5:14 pm #581534
djordjejeremicmadParticipantHey there, thanks for the code.
On the Product grid, the things look fine, the prices have less space between them, however, i still have big space on the Product page part.
Could you give me code that adjusts the Product grid price and Product landing page price separately?
Thanks
July 6, 2024 at 5:16 pm #581535
djordjejeremicmadParticipantAnd also, it seems that there is Layout shift when i try and load the page.
At first, the things look good, however, after a second or less, the layout shift happens and the space between the prices widens.
Could i somehow prevent this layout shift from happening? I disabled the caching plugin.
July 8, 2024 at 9:46 am #581662
Aizaz Imtiaz AwanKeymasterHello,
Please add the following CSS to your site for only product archives.
@media only screen and (max-width: 767px) { .product-grid-item .price ins .amount { margin-left: 10px; } } @media only screen and (min-width: 768px) and (max-width: 1024px) { .product-grid-item .price ins .amount { margin-left: 15px; } } /* Specific adjustment for iPhone 14 Pro */ @media only screen and (max-width: 430px) { .product-grid-item .price ins .amount { margin-left: 5px; } }
Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register