holliebolt Posted January 6, 2020 Share Posted January 6, 2020 Hello! I'm hoping someone can help me with the code/ process for displaying a different image on the mobile site than on the desktop version. I'm not looking to resize it. So basically, I believe I want to hide the original image when it's in mobile view and display a new image and vice versa. Specifically, my homepage is coming out ugly / mismatched sizes due to the image blocks. Any help on this would be greatly appreciated! www.licensefortress.com Link to comment
Vigasan Posted January 8, 2020 Share Posted January 8, 2020 Hey Hollie, the easiest way to do this is to upload both the mobile and the desktop images, then hide the incorrect one as needed with custom CSS. Or you could even set up a whole section for desktop and another section for mobile, and hide each section as needed. tuanphan 1 If an answer I provide helps you, please mark it as the answer so others can easily access it as well. I'm a Squarespace Authorized Trainer, Squarespace Expert, and Circle Member and I've been helping my clients as well as those here in the forum and in various Squarespace groups with custom coding and support for Squarespace websites. I would love to help you in any way I can. Squarespace Plugins | Book Live Help | Squarespace Video Tutorials | Buy Me a Coffee Link to comment
GMDI Posted January 21, 2020 Share Posted January 21, 2020 On 1/7/2020 at 7:40 PM, Vigasan said: Hey Hollie, the easiest way to do this is to upload both the mobile and the desktop images, then hide the incorrect one as needed with custom CSS. Or you could even set up a whole section for desktop and another section for mobile, and hide each section as needed. Hello, do you have more detailed information on how to achieve this? I've seen this solution mentioned a few times across the forum. Is there somewhere I can read more about this strategy? Thanks. Link to comment
tuanphan Posted January 23, 2020 Share Posted January 23, 2020 On 1/22/2020 at 3:08 AM, GMDI said: Hello, do you have more detailed information on how to achieve this? I've seen this solution mentioned a few times across the forum. Is there somewhere I can read more about this strategy? Thanks. You need to know CSS to do this. If you create 2 images, then share link, we can take a look 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
GMDI Posted January 28, 2020 Share Posted January 28, 2020 On 1/23/2020 at 2:44 AM, tuanphan said: You need to know CSS to do this. If you create 2 images, then share link, we can take a look Hi Tuan, thanks for your help. You'll recognize the site, you helped me increase the site width using CSS. The site is igcalgary.com and I'd like to work on the first index section #services. I have attached two banner samples. What I would like to do is have a duplicate of each index section with an alternate banner image and hide the section depending on the screen size. I found this idea in the linked forum post. @Joeyearthly suggests creating different index sections and hiding them but I haven't been able to get that to work. Link to comment
AndiDopico Posted January 28, 2020 Share Posted January 28, 2020 Hi @tuanphan Can you help me with my website? andinc.es Password: sweetfebrero In the homepage, under the section "Como Funciona" I want the horizontal image to stay in desktop version and the squared image to show on mobile version. thanks! Link to comment
tuanphan Posted January 29, 2020 Share Posted January 29, 2020 5 hours ago, AndiDopico said: Hi @tuanphan Can you help me with my website? andinc.es Password: sweetfebrero In the homepage, under the section "Como Funciona" I want the horizontal image to stay in desktop version and the squared image to show on mobile version. thanks! /* hide square image on desktop */ div#block-yui_3_17_2_1_1580242822454_16569 { display: none; } /* show squares image on mobile */ @media screen and (max-width:640px) { div#block-yui_3_17_2_1_1580242822454_16569 { display: block; } } 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
Mr_Ikaurs Posted January 28 Share Posted January 28 Hi @tuanphan - as I see you the one having all the knowledge! Could you help me with my website as well please...? I would like to have two different Graphics and a different text on the graphics on the Homepages (desktop on mobile) - which CSS Coding I'll need for that? Should I give you the webpage or send you screenshots? Best Tobias Link to comment
tuanphan Posted February 2 Share Posted February 2 On 1/28/2023 at 9:33 PM, Mr_Ikaurs said: Hi @tuanphan - as I see you the one having all the knowledge! Could you help me with my website as well please...? I would like to have two different Graphics and a different text on the graphics on the Homepages (desktop on mobile) - which CSS Coding I'll need for that? Should I give you the webpage or send you screenshots? Best Tobias Hi, Can you share link to homepage? We can help easier 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment