Oddish Posted April 4 Posted April 4 Hi, is it possible to have two logo variations on the same page? The site logo is dark, however I needed the homepage logo to be light to sit over the hero image. I have inserted the code below to change the homepage logo to be light, however I need it to switch back to dark on scroll when the adaptive header is solid. Any help is appreciated 🙂 /* Homepage new logo */ body[class*="homepage"] header#header img {   content: url(https://images.squarespace-cdn.com/content/65d8155900dd3949584c908d/525c807e-b928-4947-9e4d-920d3d307bf2/EucalyptRoses_PrimaryLogo_Website_Light.png?content-type=image%2Fpng); }
Solution Web_Solutions Posted April 4 Solution Posted April 4 5 hours ago, Oddish said: Hi, is it possible to have two logo variations on the same page? The site logo is dark, however I needed the homepage logo to be light to sit over the hero image. I have inserted the code below to change the homepage logo to be light, however I need it to switch back to dark on scroll when the adaptive header is solid. Any help is appreciated 🙂 /* Homepage new logo */ body[class*="homepage"] header#header img {   content: url(https://images.squarespace-cdn.com/content/65d8155900dd3949584c908d/525c807e-b928-4947-9e4d-920d3d307bf2/EucalyptRoses_PrimaryLogo_Website_Light.png?content-type=image%2Fpng); } Replace your code with the code below body[class*="homepage"] header#header:not(.shrink) img { content: url(https://images.squarespace-cdn.com/content/65d8155900dd3949584c908d/525c807e-b928-4947-9e4d-920d3d307bf2/EucalyptRoses_PrimaryLogo_Website_Light.png?content-type=image%2Fpng); }  Oddish and tuanphan 2 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Â
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment