blane Posted October 17, 2022 Share Posted October 17, 2022 Site URL: https://www.dissolveaudio.com Hello, I'm trying to make the header transparent on the mobile view, but it's not having the effect I hoped for. I've already set the mobile bar background to be transparent in Site Styles. This has the effect shown in the first screenshot, the background image is not visible underneath. I then add the following code, courtesy of @tuanphan on another thread (thank you for all your contributions): .Mobile-bar.Mobile-bar--top { position: absolute; z-index: 999; top: 0; left: 0; width: 100%; } We can now see the background image but the content has moved up and the main body is now overlapping with the header (see second screenshot). If possible, I would like the same layout and positioning as the first screenshot but with the transparent bar and background image visible like the second screenshot. Hope this makes sense and would really appreciate any help! Thanks B Link to comment
tuanphan Posted October 22, 2022 Share Posted October 22, 2022 Hi, Add to Design > Custom CSS /* mobile home transparent header */ @media screen and (max-width:767px) { body.homepage .Mobile.loaded { background: transparent !important; position: absolute !important; } body.homepage .Mobile-bar.Mobile-bar--top { background-color: transparent; } div#block-yui_3_17_2_1_1665597069172_33973 { margin-top: 50px; } } 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
blane Posted October 24, 2022 Author Share Posted October 24, 2022 This worked - thank you so much! Link to comment
blane Posted October 24, 2022 Author Share Posted October 24, 2022 Just checked again and while the code worked to make the header transparent, the burger menu has now stopped working on mobile. It also seems to have overridden my code to prevent side scrolling on mobile view - any ideas why? Thanks B Link to comment
tuanphan Posted October 27, 2022 Share Posted October 27, 2022 On 10/25/2022 at 1:30 AM, blane said: Just checked again and while the code worked to make the header transparent, the burger menu has now stopped working on mobile. It also seems to have overridden my code to prevent side scrolling on mobile view - any ideas why? Thanks B Try this new code /* mobile home transparent header */ @media screen and (max-width:767px) { body.homepage .Mobile.loaded { background: transparent !important; position: absolute !important; } body.homepage .Mobile-bar.Mobile-bar--top { background-color: transparent; z-index: 99999999; position: relative !important; } div#block-yui_3_17_2_1_1665597069172_33973 { margin-top: 50px; } } Ziggy 1 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