Hi There!
I have a 3D Spline object put into a custom liquid section on my site (using Concept theme). The desktop looks great but mobile is off (see pictures).
Someone suggested that my container might not be set to fill. Also they suggested that my Spline object might not be set to fit.
Would be very grateful for some guidance.
Thanks!
Tony
1 Like
Can you share store url and password @adbriggs66
Hi There,
The URL for the store is magnaclipbrand.com. The store is live so you should be able to see the issue I am having.
Thanks!
Hi @adbriggs66 ,
Step 1. Go to Admin → Online store → Theme > Edit code
Step 2. Find the file apps.css.
Step 3. Add these codes to the end of the file
@media only screen and (max-width: 600px) {
spline-viewer #container > canvas{
width: 100%!important;
height: auto!important;
}
}
- Here is the solution for you @adbriggs66
- Please follow these steps:
- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press ‘Save’ to save it.
@media only screen and (max-width: 600px) {
#container #spline {
width: 100% !important;
height: 600px !important;
}
}
- Here is the result you will achieve:
- Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
I put this code in the theme.css and it is still the same.
Any chance I input the code wrong? Or do I need to do something after this for it to take effect?
Thank you so much for the help