cbannister Posted September 12, 2022 Share Posted September 12, 2022 Site URL: https://gioandtheguns.com I am wanting to see if there is any custom CSS that can be used to ensure the main homepage banner is completely displayed on mobile devices without getting majorly cropped. I know it may be a long shot, or I may need to set it up differently, but any help would be appreciated. Thanks! Link to comment
tuanphan Posted September 16, 2022 Share Posted September 16, 2022 Try adding to Design > Custom CSS @media screen and (max-width:767px) { body.homepage .parallax-item img { width: 100% !important; height: auto !important; left: 0 !important; top: 100px !important; } body.homepage .parallax-item { height: 350px !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
cbannister Posted September 16, 2022 Author Share Posted September 16, 2022 (edited) @tuanphan That works great! On mobile (only), for some reason the graphic below the banner image, and the mailing list aren't showing anymore. Edited September 16, 2022 by cbannister Link to comment
tuanphan Posted September 19, 2022 Share Posted September 19, 2022 On 9/16/2022 at 9:31 AM, cbannister said: @tuanphan That works great! On mobile (only), for some reason the graphic below the banner image, and the mailing list aren't showing anymore. Hi, Can you take a screenshot of problem then remove the code, we will check it again Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
cbannister Posted September 19, 2022 Author Share Posted September 19, 2022 @tuanphan okay I have attached a screenshot WITH the code you provided (shows correctly formatted banner photo with social links beneath) and then screenshots of the mobile WITHOUT the code (incorrectly formatted banner with promo photo, mailing list, etc.) and also a screenshot of my custom css. Link to comment
tuanphan Posted September 21, 2022 Share Posted September 21, 2022 Hi, You mean with the code, these sections disappear on mobile? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
cbannister Posted September 22, 2022 Author Share Posted September 22, 2022 @tuanphan yes that is correct Link to comment
tuanphan Posted September 24, 2022 Share Posted September 24, 2022 On 9/22/2022 at 10:14 AM, cbannister said: @tuanphan yes that is correct Hi. Remove code I sent & use this new code @media screen and (max-width:640px) { body.homepage .has-main-image img { width: 100% !important; height: auto !important; left: 0 !important; top: 100px !important; } body.homepage .title-desc-wrapper.over-image.has-main-image.first { min-height: unset; height: 300px; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
cbannister Posted September 24, 2022 Author Share Posted September 24, 2022 @tuanphan that is almost it! For some reason that middle graphic is getting cut off. I have attached a screenshot Link to comment
Solution tuanphan Posted September 26, 2022 Solution Share Posted September 26, 2022 Ah, I found the cause, use this new code @media screen and (max-width:640px) { body.homepage .has-main-image.first img { width: 100% !important; height: auto !important; left: 0 !important; top: 100px !important; } body.homepage .title-desc-wrapper.over-image.has-main-image.first { min-height: unset; height: 300px; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
cbannister Posted September 26, 2022 Author Share Posted September 26, 2022 @tuanphan that works perfect! I really appreciate all of the help tuanphan 1 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