Hi, I am using the narrative theme and wanted to add the google map location for my retail store in the contact us page of my site.
I used the embed code option in google maps to add it. It is looking fine for desktop version but it doesn’t proportion itself for the mobile version.
In mobile the maps goes beyond the right boundary of the screen.
Here is the contact us page of my website: https://ecoearthclub.myshopify.com/pages/contact-us
Any help is highly appreciated.
Thanks in advance!
1 Like
@ChamanGarg1
thanks for it please add this code
- Go to Online Store->Theme->Edit code
- Asset->/theme.scss.liquid->paste below code at the bottom of the file.
iframe {
width: 100%;
}
3 Likes
Hi,
Thank you the solution. It worked perfectly.
1 Like
@ChamanGarg1
it’s my pleasure to help us
Thank you! I managed to fix it
Hi @KetanKumar I have the same issue, but i can not find the Asset-> /theme.scss.liquid … anymore did something change ?, I am using the dawn theme
For anyone struggling with mobile map responsiveness, here are two solutions:
- Quick CSS Fix (for Dawn theme):
Add this in Theme Settings > Custom CSS:
iframe {
max-width: 100% !important;
height: 400px; /* Adjust as needed */
}
- Simpler Alternative:
I built IzyMaps to handle these responsive issues automatically. It’s a lightweight solution that works with any theme and includes:
The CSS solution works great for simple cases, but if you’re managing multiple locations or want more control over the design, the app might save you some time.
2 Likes