Lazare
March 9, 2024, 7:16am
1
Hi, I have added an embed code to my website from custom liquid template and it is fixed size, not responsive, I want to make it responsive. I don’t know coding, I don’t know where to find it exactly, in Templates or in Sections, nor I know what to change, although I searched and found some solutions.
Please help - my website
Hey @Lazare
You can place this code to the very bottom of this custom liquid code
Hopefully, it will help you. If yes then Please don’t forget to hit Like and Mark it as the solution!
1 Like
Hello @Lazare
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
.section-template--17574546276566__custom_liquid_WXBRgW-padding iframe {
width: 100%;
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Lazare
March 9, 2024, 7:56am
4
Hey!
It worked but from smartphone, when zooming in and moving, it starts to disfunctionally zoom and move. This is not happening on desktop but I need it do work on smartphone as well ://
firstly please accept the solution and like it…and I’m trying to do resolve the problem.
Thanks
Lazare
March 9, 2024, 8:01am
6
Sadly I don’t know where the liquid file is in code, can I put that code you provided for me in Custom CSS from website editing space?
Thanks!
Lazare
March 9, 2024, 8:04am
7
Yes I was going to of course in the end but here it is no prob
you have to do work on script part.
Lazare
March 9, 2024, 10:15am
11
I will mark your answer as solution if you solve me the problem.
I’m trying to find the solution what you want, But I am not able to find the solution to your problem.
Sorry for that.
Lazare
March 9, 2024, 11:11am
14
Hey man!
This is the website link where the code is provided - https://embed.windy.com/config/map
and on this website, it does not glitch from mobile !
Please try there and then try on my website with your phone
ok I’ll check if I get the solution I will defiantly do reply you.
Lazare
March 9, 2024, 11:19am
16
Of course, no worries, but please let me know, if you solve it, I will give you a review also!
Let me know if you could not find the solution please.
Add this CSS maybe it works
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
@media screen and (max-width: 767px){
iframe {
overflow: hidden;
}
}
Lazare
March 9, 2024, 12:02pm
19
Noo :////
As long as I zoom in, it starts disfunctioning:// Please you try too from mobile
Lazare
March 9, 2024, 12:10pm
20
Hey did you tell me to use this code AND the code you wrote previously? Because I used THIS LAST ONE now only.
And hey, see this please - https://developers.video.ibm.com/player-api-examples/responsive-embed/ - It is about making embed code responsive but don’t know for sure, please check it.