Please help me with the code to change the aspect ratio of my images to Lanscape/on its original size so it looks like this (after) on MOBILE. 'Before' is what it currently looks like.
p.s the reason why I am doing this is so I can pinch-to-zoom and view the images in full size on mobile while keeping my beautiful grid gallery on desktop mode. This is the cheat I have thought about since Lightbox does not allow us to zoom the images on phone.
To add back to top, follow this guide.
With align, it looks like you added Pagination with Text Block. If you have more similar pages, each page will need different code.
With current page,
Question
Ptphotography 25
Hello,
I hope everyone is doing well.
Please help me with the code to change the aspect ratio of my images to Lanscape/on its original size so it looks like this (after) on MOBILE. 'Before' is what it currently looks like.
Site:
https://www.ptphotography.com/mauritius-four-seasons-mauritius
Thanks in advance,
p.s the reason why I am doing this is so I can pinch-to-zoom and view the images in full size on mobile while keeping my beautiful grid gallery on desktop mode. This is the cheat I have thought about since Lightbox does not allow us to zoom the images on phone.
Link to post
Top Posters For This Question
4
3
Popular Days
Jan 13
2
Jan 17
2
Jan 18
2
Jan 12
1
Top Posters For This Question
Ptphotography 4 posts
tuanphan 3 posts
Popular Days
Jan 13 2021
2 posts
Jan 17 2021
2 posts
Jan 18 2021
2 posts
Jan 12 2021
1 post
Popular Posts
tuanphan
Add to Page Header <style> @media screen and (max-width:767px) { .gallery-grid-item img { object-fit: contain !important; } } </style>
tuanphan
Some pages on mobile seems long. You should consider adding a back to top button Do you want to align these pagination on mobile?
tuanphan
To add back to top, follow this guide. With align, it looks like you added Pagination with Text Block. If you have more similar pages, each page will need different code. With current page,
Posted Images
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment