thephase51 Posted September 4, 2023 Share Posted September 4, 2023 Hi, i need to have an optimised video on my mobile home page, I have been using the following code on page header injection but to no avail. The page is accessible via https://www.bumphaus.com/home-1 <style> @media screen and ( max-width : 767px ) { [data-section-id="64f5a7264f39e02a98d3cc42"] { display : none ! Important; } } @media screen and ( min-width : 768px ) { [data-section-id="645a5771a9fcec01afb17139"] { display : none! Important; } } </style> Link to comment
tuanphan Posted September 6, 2023 Share Posted September 6, 2023 Hi, I see you solved? /* homepage video hide desktop */ @media screen and ( max-width : 767px ) { html:not( .squarespace-damask ) [data-section-id="645a5771a9fcec01afb17139"] { display : none; } } /* homepage video hide mobile */ @media screen and ( min-width : 768px ) { html:not( .squarespace-damask ) [data-section-id="64f5a7264f39e02a98d3cc42"] { display : none; } } </style> 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
thephase51 Posted September 12, 2023 Author Share Posted September 12, 2023 yes, but thanks for responding 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