WahWash Posted December 12, 2023 Share Posted December 12, 2023 I used custom CSS injection to change the icon of a social link in my header. I am trying to now make this custom icon match the colour theme and follow the style settings I have for my header. I have attached screenshots so you can see what is going on and the following code is the code I have used for adding a custom icon for a social link in my header: @media only screen and (min-width:640px) { .header-actions-action--social .icon--fill:nth-of-type(2) { svg { display:none; } background-image: url(https://static1.squarespace.com/static/646c19ab135dd855c8022b8a/t/6578d70b2daae851a3f880a9/1702418187251/clouds_6563658.png); background-size: 100%; background-repeat: no-repeat; } } .header-menu-actions-action:nth-of-type(2) { svg { display:none; } background-image: url(https://static1.squarespace.com/static/646c19ab135dd855c8022b8a/t/6578d29bd0e5a30c450a750d/1702417051923/clouds_6563658.png); background-size: 100%; background-repeat: no-repeat; } Thank you in advance for anyone able to help! Link to comment
tuanphan Posted December 14, 2023 Share Posted December 14, 2023 Hi, What is page url? We can check easier 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
WahWash Posted December 14, 2023 Author Share Posted December 14, 2023 Our website url is wahwash.com Link to comment
tuanphan Posted December 16, 2023 Share Posted December 16, 2023 Hi, You want Change icon color on each page? To do this, you will need to use different icon url on each page for example, Contact Page, add this code to Contact Page Header Code Injection, replace Pixabay with new icon url <style> header#header a.icon[href*="bsky.app"] { background-image: url(https://cdn.pixabay.com/photo/2023/06/01/05/58/ocean-8032698_1280.jpg); } </style> I use this code because it targets both mobile + desktop 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment