CorinnaR Posted November 16, 2023 Share Posted November 16, 2023 Hi 😊 I'm trying to switch logos on specific pages on mobile. I already added a different logo for mobile (without a subtitle as in the desktop version) but I need it to switch to the blue version. I already have a code to switch logos on desktop: <style> header#header img { content: url("https://static1.squarespace.com/static/6543b43f555c594c9d98c11a/t/654a3d67afd27f1206b302c7/1699364199599/studio+applaus_logo_sl_rgb_blue.png"); } </style>  link: https://scarlet-clementine-rsng.squarespace.com/ pw: applaus Link to comment
Solution tuanphan Posted November 18, 2023 Solution Share Posted November 18, 2023 With mobile, just change your code to this <style> header#header img { content: url("https://static1.squarespace.com/static/6543b43f555c594c9d98c11a/t/654a3d67afd27f1206b302c7/1699364199599/studio+applaus_logo_sl_rgb_blue.png"); } @media screen and (max-width:767px) { header#header img { content: url("https://static1.squarespace.com/static/6543b43f555c594c9d98c11a/t/654a3d67afd27f1206b302c7/1699364199599/studio+applaus_logo_sl_rgb_blue.png"); } } </style> Replace url in the code with new mobile image url 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
CorinnaR Posted November 20, 2023 Author Share Posted November 20, 2023 this worked like a charm - thanks! 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