tuanphan Posted January 13, 2021 Share Posted January 13, 2021 11 hours ago, cararuetz said: Hi i am having this issue with my headline image on homepage. All fine on computer but on mobile image does not resize. Website here: https://www.cararuetz.com Thanks! Image with effect will be a bit difficult. Add this to Design > Custom CSS /* resize background image with image effect */ @media screen and (max-width:767px) { [data-section-id="5f63a4a8e08a007fe04d9814"] { .section-background-content { z-index: 999; } .section-background-content .section-background-canvas { visibility: hidden; } .section-background img { visibility: visible !important; } & { min-height: unset !important; height: 40vh !important; } } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tuanphan Posted January 13, 2021 Share Posted January 13, 2021 52 minutes ago, ctan9 said: I added a code block over the section and added this. <style> @media screen and (max-width:767px) { #page section:first-child { height: 45vh !important; min-height: 10vh !important; } } </style> Add this to Design > Custom CSS /* resize mobile banner */ @media screen and (max-width:767px) { body#collection-5f6501a931c8767609f1ba90 #page section:first-child { min-height: 20vh; height: 30vh; margin-top: 10vh; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Livia_Sole Posted January 13, 2021 Share Posted January 13, 2021 14 hours ago, tuanphan said: Remove your code & add new code /* Tablet */ @media screen and (max-width:991px) { body.homepage #page section:first-child { min-height: 40vh !important; } } /* mobile */ @media screen and (max-width:767px) { body.homepage #page section:first-child { min-height: 20vh !important; } } Hi @tuanphan - I'm afraid these don't quite work either. I've adapted what you sent and it's marginally better, but still not working on landscape view on mobile and on tablet. /* Tablet */ @media screen and (max-width:1100px) { body.homepage #page section:first-child { min-height: 80vh !important; } } /* mobile */ @media screen and (max-width:780px) { body.homepage #page section:first-child { min-height: 40vh !important; } } You can see what I mean here: http://www.responsinator.com/?url=periodictableofveg.com. Any suggestions? Link to comment
nele Posted January 14, 2021 Share Posted January 14, 2021 (edited) Dear @tuanphan you are a rockstar! Squarespace should hire you. Have the same trouble. All my banners are cut off on mobile version. Desktop and tablet view is perfectly fine. Banner are on pages: home, private yoga, chakra course, the art yoga. Secondly, is it possible to link two text boxes to stay horizontal next to each other on mobile version? On ever page I use a list style. Please find an example attached. Text box: "1" linked to text box: "private yoga" to stay next to each other. THANK YOU! Sending you the best. My URL: https://theartyoga.squarespace.com/config/pages Edited January 14, 2021 by nele name tag Link to comment
TI-Group Posted January 14, 2021 Share Posted January 14, 2021 Hello, Can someone please help 🙂 I have the been able to use the code on the first page to resize the banner image on the home page but I'm left with lots of grey space underneath where the block finishes. How can I fix this? The website link is: https://www.the-initiative-group.com Thank you! Link to comment
cararuetz Posted January 14, 2021 Share Posted January 14, 2021 @tuanphan thank you! It worked to resize image but now there is a big gap where my text at top of home page is...still fine on desktop but text not showing on mobile and the CMR on the upper left is cut off in the left margin. I attached a screen shot of the mobile view and what the normal desktop looks like. Thanks again! Link to comment
studiodelphine Posted January 15, 2021 Share Posted January 15, 2021 Hi there! Can anyone, maybe @tuanphan, help me figure out how to fix the banner images on my index pages? Basically all of them aren't resizing for mobile 😞 website is nazirasacasa.squarespace.com PW: NaziraSacasa Link to comment
tuanphan Posted January 18, 2021 Share Posted January 18, 2021 On 1/14/2021 at 5:28 AM, Livia_Sole said: Hi @tuanphan - I'm afraid these don't quite work either. I've adapted what you sent and it's marginally better, but still not working on landscape view on mobile and on tablet. /* Tablet */ @media screen and (max-width:1100px) { body.homepage #page section:first-child { min-height: 80vh !important; } } /* mobile */ @media screen and (max-width:780px) { body.homepage #page section:first-child { min-height: 40vh !important; } } You can see what I mean here: http://www.responsinator.com/?url=periodictableofveg.com. Any suggestions? This code for landscape /* mobile */ @media screen and (max-width:767px) and (orientation:landscape) { body.homepage #page section:first-child { min-height: 20vh !important; margin-top: 5vh; } } You can adjust 20 & 5 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tuanphan Posted January 18, 2021 Share Posted January 18, 2021 On 1/15/2021 at 11:59 PM, studiodelphine said: Hi there! Can anyone, maybe @tuanphan, help me figure out how to fix the banner images on my index pages? Basically all of them aren't resizing for mobile 😞 website is nazirasacasa.squarespace.com PW: NaziraSacasa Which banner Can you take a screenshot? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
nele Posted January 18, 2021 Share Posted January 18, 2021 On 1/14/2021 at 1:03 PM, nele said: Dear @tuanphan you are a rockstar! Squarespace should hire you. Have the same trouble. All my banners are cut off on mobile version. Desktop and tablet view is perfectly fine. Banner are on pages: home, private yoga, chakra course, the art yoga. Secondly, is it possible to link two text boxes to stay horizontal next to each other on mobile version? On ever page I use a list style. Please find an example attached. Text box: "1" linked to text box: "private yoga" to stay next to each other. THANK YOU! Sending you the best. My URL: https://theartyoga.squarespace.com/config/pages Dear @tuanphan 🙂 can you maybe help? Tried all codes you suggested for other pages with the same issue. Link to comment
tuanphan Posted January 20, 2021 Share Posted January 20, 2021 (edited) On 1/14/2021 at 7:03 PM, nele said: Dear @tuanphan you are a rockstar! Squarespace should hire you. Have the same trouble. All my banners are cut off on mobile version. Desktop and tablet view is perfectly fine. Banner are on pages: home, private yoga, chakra course, the art yoga. Secondly, is it possible to link two text boxes to stay horizontal next to each other on mobile version? On ever page I use a list style. Please find an example attached. Text box: "1" linked to text box: "private yoga" to stay next to each other. THANK YOU! Sending you the best. My URL: https://theartyoga.squarespace.com/config/pages With Homepage, add to Home > Design > Custom CSS /* resize mobile banners */ @media screen and (max-width:640px) { body.homepage .Parallax-item:first-child img { width: 100% !important; height: auto !important; left: 0 !important; } section[id*="en/shooting-01"] { min-height: unset !important; } body.homepage .Parallax-item:first-child figure { transform: unset !important; top: 0 !important; bottom: 0 !important; } } With Private Yoga, add to Private Yoga Page Settings > Advanced > Header <style> @media screen and (max-width:640px) { .Parallax-item:first-child img { width: 100% !important; left: 0 !important; height: auto !important; } section[id*="en/shooting-03"] { min-height: unset !important; } } </style> With Online Yoga, add to Online Yoga Page Header <style> @media screen and (max-width:640px) { .Parallax-item:first-child img { width: 100% !important; left: 0 !important; height: auto !important; } section[id*="en/shooting-05"] { min-height: unset !important; } } </style> Do similar for other pages Disable Ajax (Home > Design > Site Styles > Ajax Loading) if the code doesn't work. Edited January 20, 2021 by tuanphan Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
nele Posted January 20, 2021 Share Posted January 20, 2021 4 hours ago, tuanphan said: Do similar for other pages @tuanphan you are a rockstar! THANK you so much!! Is there a possibility to increase white space between Header and Banner? On Homepage its perfect. On other pages Banner is stuck to the Header. Sending best 🙂 Link to comment
tuanphan Posted January 23, 2021 Share Posted January 23, 2021 On 1/20/2021 at 7:48 PM, nele said: @tuanphan you are a rockstar! THANK you so much!! Is there a possibility to increase white space between Header and Banner? On Homepage its perfect. On other pages Banner is stuck to the Header. Sending best 🙂 Sorry for delay. I'm overloaded. Add to Design > Custom CSS. Do similar for other pages @media screen and (max-width:640px) { section[id*="shooting-07"]>div { padding-top: 0 !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
CestlaVT Posted January 27, 2021 Share Posted January 27, 2021 On 1/5/2020 at 7:01 AM, tuanphan said: Add to Home > Design > Custom CSS @media screen and (max-width:640px) { .homepage .section-background img { width: 100% !important; height: auto !important; } } @tuanphan, I'm having the same issue where my banner images are cropped in mobile view, and using this code does resize them but also creates a big gray block of space under the photo in the mobile view--I believe to accommodate the overlay text. Do you have any suggestions for how to circumvent this so there's no gray block? This pertains to both banner images on the homepage. The banner images at the top of the pages under the About section are also cropping in mobile view. I don't understand why the template doesn't automatically account for this ... Thanks for your help! https://squid-prism-xj44.squarespace.com/ The password to view the site is EdAnnex Link to comment
capitaltimberco Posted January 28, 2021 Share Posted January 28, 2021 (edited) I am having the same issues with my page. All gallery images contained on the index page are cropped when viewed on mobile. Have tried copy pasting the different css codes without any results. Using the Mojave template. capitaltimbercompany.ca/about-us Thanks in advance! Edited January 28, 2021 by capitaltimberco missing important info Link to comment
hilaryparr Posted January 29, 2021 Share Posted January 29, 2021 I'm also having this issue. None of our header images are resizing for mobile. I've tried to add the code listed in this feed but it's not working. I'm still new to code and such so I hope I'm doing it right. Should I just add it to the list of other code already in css or delete what is there and place the new code? I'm confused! bbcnorman.com Link to comment
tuanphan Posted February 3, 2021 Share Posted February 3, 2021 On 1/27/2021 at 7:55 AM, CestlaVT said: @tuanphan, I'm having the same issue where my banner images are cropped in mobile view, and using this code does resize them but also creates a big gray block of space under the photo in the mobile view--I believe to accommodate the overlay text. Do you have any suggestions for how to circumvent this so there's no gray block? This pertains to both banner images on the homepage. The banner images at the top of the pages under the About section are also cropping in mobile view. I don't understand why the template doesn't automatically account for this ... Thanks for your help! https://squid-prism-xj44.squarespace.com/ The password to view the site is EdAnnex Remove your code @media screen and (max-width: 640px) { .homepage .section-background img { width:100% !important; height: auto !important } } Add new code /* resize home banner */ @media screen and (max-width:767px) { body.homepage #page section:first-child { min-height: 10vh !important; height: 40vh; } body.homepage #page section:first-child * { font-size: 20px; } } CestlaVT and Mary_DG 1 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tuanphan Posted February 3, 2021 Share Posted February 3, 2021 On 1/28/2021 at 1:15 PM, capitaltimberco said: I am having the same issues with my page. All gallery images contained on the index page are cropped when viewed on mobile. Have tried copy pasting the different css codes without any results. Using the Mojave template. capitaltimbercompany.ca/about-us Thanks in advance! Add to Design > Custom CSS /* resize mobile banner */ @media screen and (max-width:640px) { .Parallax-item:first-child img { width: 100% !important; height: auto !important; left: 0 !important; top: 0 !important; } section#about-intro { min-height: unset !important; height: 180px; } } capitaltimberco 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tuanphan Posted February 3, 2021 Share Posted February 3, 2021 On 1/29/2021 at 8:18 AM, hilaryparr said: I'm also having this issue. None of our header images are resizing for mobile. I've tried to add the code listed in this feed but it's not working. I'm still new to code and such so I hope I'm doing it right. Should I just add it to the list of other code already in css or delete what is there and place the new code? I'm confused! bbcnorman.com Hi. You mean slider? Add to Design > Custom CSS /* resize mobile slide */ @media screen and (max-width:767px) { body.homepage .gallery-fullscreen-slideshow { height: 35vh !important; } } hilaryparr 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
SarahCheese Posted February 3, 2021 Share Posted February 3, 2021 Hello - I'm having the same issue as everyone else - are you able to help me with the code please? The page is https://www.weareomm.com/omm-academy Showing perfectly on desktop, but cuts one of us out on mobile. Link to comment
tuanphan Posted February 4, 2021 Share Posted February 4, 2021 On 2/3/2021 at 6:33 PM, SarahCheese said: Hello - I'm having the same issue as everyone else - are you able to help me with the code please? The page is https://www.weareomm.com/omm-academy Showing perfectly on desktop, but cuts one of us out on mobile. Add to Design > Custom CSS /* resize mobile banner */ @media screen and (max-width:767px) { body#collection-600c1456d3c69c50b9c6c8ff #page { section:first-child { min-height: 10vh !important; height: 30vh; } section:first-child * { font-size: 30px; } a.sqs-block-button-element--medium.sqs-block-button-element { font-size: 16px !important; padding: 10px 20px; position: relative; top: -30px; } } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
capitaltimberco Posted February 7, 2021 Share Posted February 7, 2021 On 2/3/2021 at 1:52 AM, tuanphan said: Add to Design > Custom CSS /* resize mobile banner */ @media screen and (max-width:640px) { .Parallax-item:first-child img { width: 100% !important; height: auto !important; left: 0 !important; top: 0 !important; } section#about-intro { min-height: unset !important; height: 180px; } } Thank you!!! I just tried this today and it fixed the the first image on the "About" page but as I scroll down the other images are still cropped as well as the images on my other pages. Any additional help would be greatly appreciated! Link to comment
tuanphan Posted February 8, 2021 Share Posted February 8, 2021 16 hours ago, capitaltimberco said: Thank you!!! I just tried this today and it fixed the the first image on the "About" page but as I scroll down the other images are still cropped as well as the images on my other pages. Any additional help would be greatly appreciated! Above code work for 1 image only. Which image/which page do you want to solve? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
capitaltimberco Posted February 8, 2021 Share Posted February 8, 2021 (edited) 5 hours ago, tuanphan said: Above code work for 1 image only. Which image/which page do you want to solve? Thanks! On the "About us" page there are 2 more images as you scroll down. On the "Arboriculture" page the sliding gallery at the top of the page is cropped as well as on the "saw-milling" and "contact" page. Thanks for all the help! Edited February 8, 2021 by capitaltimberco Link to comment
MariaFY Posted February 9, 2021 Share Posted February 9, 2021 Hi there, I'm hopping on this thread trying to figure out how I can resize my Index page banners on mobile only. I like them full screen (110vh) on desktop, but on mobile the images don't work well. @tuanphan Is this an easy one? I played with css but didn't come to a working solution. Site: https://koala-saxophone-dd8b.squarespace.com/ PW: haiku Muchas gracias Circle familia! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment