compoczar Posted May 22, 2021 Share Posted May 22, 2021 Site URL: https://www.matthewbridgham.com/blog /**desktop logo**/ @media screen and (min-width:767px) { #collection-60a88aded9e07e2ed6dd4a00 .header-title-logo img { content: url("https://static1.squarespace.com/static/6022b58bbc5d8f6d6e8e335e/t/60a966021a74bd0fe5759a3b/1621714434770/png-black.png") !important; max-height:inherit !important; } } /**mobile logo**/ @media screen and (max-width:767px) { #collection-60a88aded9e07e2ed6dd4a00 .header .header-title--use-mobile-logo .header-mobile-logo img { content: url("https://static1.squarespace.com/static/6022b58bbc5d8f6d6e8e335e/t/60a966021a74bd0fe5759a3b/1621714434770/png-black.png") !important; max-height:inherit !important; } } I am using the code above to change my white logo to black for light colored pages. I am currently targeting a specific page (matthewbridgham.com/blog) as a test and it seems to be working everywhere but firefox. I have searched far and wide for a solution and nothing works. Please help me. Link to comment
Solution tuanphan Posted May 24, 2021 Solution Share Posted May 24, 2021 On 5/23/2021 at 4:15 AM, compoczar said: Site URL: https://www.matthewbridgham.com/blog /**desktop logo**/ @media screen and (min-width:767px) { #collection-60a88aded9e07e2ed6dd4a00 .header-title-logo img { content: url("https://static1.squarespace.com/static/6022b58bbc5d8f6d6e8e335e/t/60a966021a74bd0fe5759a3b/1621714434770/png-black.png") !important; max-height:inherit !important; } } /**mobile logo**/ @media screen and (max-width:767px) { #collection-60a88aded9e07e2ed6dd4a00 .header .header-title--use-mobile-logo .header-mobile-logo img { content: url("https://static1.squarespace.com/static/6022b58bbc5d8f6d6e8e335e/t/60a966021a74bd0fe5759a3b/1621714434770/png-black.png") !important; max-height:inherit !important; } } I am using the code above to change my white logo to black for light colored pages. I am currently targeting a specific page (matthewbridgham.com/blog) as a test and it seems to be working everywhere but firefox. I have searched far and wide for a solution and nothing works. Please help me. To change logo to black, add this to Design > Custom CSS /* Blog logo */ body[class*="type-blog"] .header-title-logo img { filter: invert(1); -webkit-filter: invert(1); } compoczar 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
compoczar Posted May 24, 2021 Author Share Posted May 24, 2021 3 minutes ago, tuanphan said: To change logo to black, add this to Design > Custom CSS /* Blog logo */ body[class*="type-blog"] .header-title-logo img { filter: invert(1); -webkit-filter: invert(1); } Amazing work! 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