johnnyaugust Posted January 14, 2021 Share Posted January 14, 2021 Site URL: https://johnaugustdesign.com Hi there! I need to remove the hero image from the top section of my home page on mobile! Thank you! Link to comment
creedon Posted January 14, 2021 Share Posted January 14, 2021 Add the following to Design > Custom CSS. @media screen and ( max-width: 767px ) { [data-section-id="5f5e8390d7bf523730ec3fc7"] .section-background { display: none; } } Alternately you can put the code in Page Settings > Advanced > Page Header Code Injection for the page. <style> @media screen and ( max-width: 767px ) { [data-section-id="5f5e8390d7bf523730ec3fc7"] .section-background { display: none; } } </style> Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
johnnyaugust Posted January 14, 2021 Author Share Posted January 14, 2021 Hmm, seems like that didn't work. That goes into the script injection in the advanced tab on the home page? Link to comment
johnnyaugust Posted January 14, 2021 Author Share Posted January 14, 2021 It worked, I just had to add <style></style> in the injection. Thank you!! Link to comment
creedon Posted January 14, 2021 Share Posted January 14, 2021 Either way can work. Just depends on how you want to organize your code. I did make a change to the CSS to more specifically target just the hero image. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.