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
Solution creedon Posted January 14, 2021 Solution Share Posted January 14, 2021 (edited) 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. Edited January 14, 2021 by creedon version 2 tuanphan 1 Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support! 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 best , and see my profile. Thanks for your support! 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