Jump to content

how to reduce banner image sizes to fit mobile device?

Recommended Posts

15 hours ago, Coachtech said:

Having same problem just with mobile homepage banner not resizing enough on small iPhones.

The banner image is designed to do this. Rather than trying to resize the banner image, it is better to remove the text/logo from the image and display the logo as a separate block over the banner image. In this way, the logo size can be controlled, independently of the header background image.

I say this because:

  • The banner image is also a problem on larger screen sizes (see screenshot below)
  • If you resize the banner image for mobiles, the logo will be much smaller and potentially unreadable by some users

image.thumb.png.3e125173c8009f4d28a37a1a6ac6cce0.png

Another point regarding images, you may want to check the alt text for your images. Alt text is the text you add to images to identify the content of the image. It makes them more accessible to visitors and can improve your site's visibility on search engines. Your image titles currently have titles like "Agape Banner Cropped2" and "jason-blackeye-145755". 

I hope this helps.

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
  • 8 months later...
15 hours ago, MarieJamora said:

Hello there, I would also like help either choosing the crop for my banner image per page on my site or fitting the banner while in mobile setting. I tried cut and pasting the other codes and they don't work.

 

https://www.mariejamora.com/

The main page is fine but if you click on any of the images, then it crops the banner.

 

Thank you!

You can add this to Design > Custom CSS

/* resize mobile banner */
@media screen and (max-width:767px) {
body.collection-5e5de0d1f951361518ef3d17.view-item article>section:first-child {
    min-height: unset !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
  • 5 weeks later...
On 8/31/2023 at 11:11 AM, idha_nyc said:

Hi @tuanphan, I've also tried to adapt the other codes but can't get this to work! I'd love for the top banner on this site to be responsive on mobile devices: 

https://www.idha-nyc.org/core-curriculum-draft

Use this code to Custom CSS box

/* Core Curriculum Draft page */
@media screen and (max-width:640px) {
body#collection-649cd60f19f7c556b6ae557c .Parallax-item:first-child img {
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    height: auto !important;
}
section#cc-header {
    height: 200px;
}
}

 

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
  • 4 months later...
On 7/14/2020 at 7:51 PM, tuanphan said:

I don't see banner. Which banner?

Hi Tuan,

I'm having a similar issue, hoping you can help me. Currently my mobile banner gets cut off, is there any way I can get it to resize? Not sure if I'll have to change the dimensions of the main image? 

Here's the URL to my website: thealmanator.com

 

Also how would I enter the code? Would I simply go to pages > website tools> custom css and enter the code there? (Sorry this is my first website)

Thanks in advance!

Link to comment
On 9/3/2023 at 1:24 AM, tuanphan said:

Use this code to Custom CSS box

/* Core Curriculum Draft page */
@media screen and (max-width:640px) {
body#collection-649cd60f19f7c556b6ae557c .Parallax-item:first-child img {
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    height: auto !important;
}
section#cc-header {
    height: 200px;
}
}

 

Hi @tuanphan, I'm having a similar issue, hoping you can help me. Currently my mobile banner gets cut off, is there any way I can get it to resize? Not sure if I'll have to change the dimensions of the main image? Here's the URL to my website: thealmanator.com Also how would I enter the code? Would I simply go to pages > website tools> custom css and enter the code there? (Sorry this is my first website) Thanks in advance!

Link to comment
On 1/23/2024 at 12:48 PM, thealmanator said:

Hi Tuan,

I'm having a similar issue, hoping you can help me. Currently my mobile banner gets cut off, is there any way I can get it to resize? Not sure if I'll have to change the dimensions of the main image? 

Here's the URL to my website: thealmanator.com

 

Also how would I enter the code? Would I simply go to pages > website tools> custom css and enter the code there? (Sorry this is my first website)

Thanks in advance!

Which page are you referring to? I don't see banner on homepage

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
  • 1 month later...

Not sure if the CSS is different depending on the page. But I've tried a couple on this thread that have not helped me. I'm trying to get my home page banner to resize to the mobile phone. Can you help me? this is my website www.bma.us. Attached is a picture of the banner circled in red. image.thumb.png.4ba69be39f8d273f83302b9b1a06e0ab.png

Link to comment
On 3/4/2024 at 10:44 PM, bmaweb said:

Not sure if the CSS is different depending on the page. But I've tried a couple on this thread that have not helped me. I'm trying to get my home page banner to resize to the mobile phone. Can you help me? this is my website www.bma.us. Attached is a picture of the banner circled in red. image.thumb.png.4ba69be39f8d273f83302b9b1a06e0ab.png

You can use this code to Website > Website Tools > Custom CSS

@media screen and (max-width:991px) {
body.homepage .gallery-fullscreen-slideshow[data-width="full-bleed"] {
    height: 30vh !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
  • 1 month later...
On 4/20/2024 at 1:11 AM, CarlyFly said:

Hi,

I am having the same issue of making this

top banner: section[data-section-id="661f53df287ca660754dd879"] shrink in mobile view. I've tried multiple codes and they are not working.

https://www.asianpilots.org/nexgen-takeoff

Please help!

Thanks,

Carly

You can use this code to Website > Website Tools > Custom CSS

@media screen and (max-width:991px) {
[data-section-id="661f53df287ca660754dd879"] {
    min-height: unset !important;
    margin-top: 5vh;
}
}

 

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
On 4/23/2024 at 7:49 PM, Dario88c said:

Hello everyone,

I'm looking for custom code that will keep the background image (our services section) only on the homepage for desktop users, while ensuring it disappears for the mobile version. 

Here is the link: https://beagle-cod-7bmw.squarespace.com/ and here's the password: 5p0rt51nv3st2024
 
Thank you!

Dario

You can use this code to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="6613ff16f9286224504f421e"] .section-border img {
    opacity: 0;
}
}

 

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
  • 2 weeks later...

Hi there Tuanphan! Thank you for all of this advice! So kind of you to help everyone out! I sent the following message to your inbox but want to post it here as well in the forum. Please let me know if you can help me, have to do this in two days! All the best, Millicent here’s the msg I sent: 

Hi there! I work in communications and media, but I don’t do design at all! However, having to put a site together for a non profit on my own in just a couple of days and I normally only do the branding and writing.. can you please help me with my banner image? I need to resize it for mobile. This is for a non profit promotion for Amish farmers and they do not allow their photos to be taken so am using all AI generated images. I like the image I have for the banner on the web as I’m doing stylized photos since all I can use is AI but can’t get it to work on mobile. If you can advise, would very much appreciate it! Thanks for all the advice you give out! so kind!  The site is not live yet, so how can I best show it to you? Am attaching a screenshot of how the banner looks as I have it in the draft stage and attaching the image itself as it was before I tweaked it for homepage banner I’ll post this in the forum where you’ve been advising on mobile banners also. Thank you!!!

Millicent Smith

Image.thumb.png.449ad69521213262a4a7870e3d1c4fda.png

buggy3.jpg

Link to comment
On 5/10/2024 at 12:09 PM, MillicentSmith said:

Hi there Tuanphan! Thank you for all of this advice! So kind of you to help everyone out! I sent the following message to your inbox but want to post it here as well in the forum. Please let me know if you can help me, have to do this in two days! All the best, Millicent here’s the msg I sent: 

Hi there! I work in communications and media, but I don’t do design at all! However, having to put a site together for a non profit on my own in just a couple of days and I normally only do the branding and writing.. can you please help me with my banner image? I need to resize it for mobile. This is for a non profit promotion for Amish farmers and they do not allow their photos to be taken so am using all AI generated images. I like the image I have for the banner on the web as I’m doing stylized photos since all I can use is AI but can’t get it to work on mobile. If you can advise, would very much appreciate it! Thanks for all the advice you give out! so kind!  The site is not live yet, so how can I best show it to you? Am attaching a screenshot of how the banner looks as I have it in the draft stage and attaching the image itself as it was before I tweaked it for homepage banner I’ll post this in the forum where you’ve been advising on mobile banners also. Thank you!!!

Millicent Smith

Image.thumb.png.449ad69521213262a4a7870e3d1c4fda.png

buggy3.jpg

What is site url?

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

Hey Tuanphan

Not sure if this is the right topic thread but is there a code that can help us with the video banner to be also responsive on mobile? What we placed right now is just a very first rough version of what it will be close a minute video.

Thanks again for your help!

Here is the link: https://beagle-cod-7bmw.squarespace.com/ and here's the password: 5p0rt51nv3st2024



 

Link to comment
On 5/17/2024 at 9:44 PM, Dario88c said:

Hey Tuanphan

Not sure if this is the right topic thread but is there a code that can help us with the video banner to be also responsive on mobile? What we placed right now is just a very first rough version of what it will be close a minute video.

Thanks again for your help!

Here is the link: https://beagle-cod-7bmw.squarespace.com/ and here's the password: 5p0rt51nv3st2024



 

Try this to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="6613ff16f9286224504f4215"] {
    min-height: unset !important;
    height: 30vh !important;
    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
  • 3 months later...
On 9/13/2024 at 2:46 PM, carolglynn said:

Hello, could you help with this issue too please. My banner isn't adjusting to fit the mobile screen well. 

https://www.consciousfinancecoaching.com/queen-it-up

I think image is already fine

image.png.ff56c234392e188e377f16399aa8f50e.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.