Jump to content

Custom CSS not showing on Firefox. Works on every other browser.

Go to solution Solved by tuanphan,

Recommended Posts

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
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);
}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.