theuq Posted October 25, 2023 Share Posted October 25, 2023 Hey Everyone! Thanks to these forums and Google, I've been able to set up the SVG logo which is working fine on desktop and mobile. But I'd also like to have another logo with a very small variation on mobile overlay (when you click the burger menu). Current CSS on the website: /* Hide the normal logo */ .header-title-logo img, .header-mobile-logo img { visibility: hidden !important; } /* Set background image to be the SVG logo */ .header-title-logo a, .header-mobile-logo a{ /* Change the "left" below to "center" or "right" if you want the logo positioned in the middle or on the right */ background: url(https://www.dataterminus.com/s/bold-wb-cropped.svg) no-repeat left !important; background-size: contain !important; } Link to comment
Solution tuanphan Posted October 27, 2023 Solution Share Posted October 27, 2023 Remove your code & use this new code /* change header logo */ header#header img { content: url(https://www.dataterminus.com/s/bold-wb-cropped.svg); } /* change header logo when burger menu is open */ body.header--menu-open header#header img { content: url(add new svg logo url here); } Remember to change url in second code theuq 1 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
theuq Posted October 27, 2023 Author Share Posted October 27, 2023 Thank you very much tuanphan! That worked! 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