Jump to content

How to change logo colour on light and dark background pages

Go to solution Solved by tuanphan,

Recommended Posts

I am also struggling with this. I have PNG and SVG logo available and would like to have transparent menu bar but some pages feature light images and some pages feature dark images so no single logo color is fitting all situations. https://www.wichsoup.com

I noticed that HomeGrown website adds dark background to many bar as you scroll, to make bight text visible on a bright background. That would work for me too. https://eathomegrown.com

Edited by devilaxe
Providing media file
Link to comment
  • Solution

If you use 7.1 version, you can add this code to each Page Header Code Injection (Hover page name on Main Navigation or Not Linked > Click Gear icon > Advanced). This code will replace current logo on current page with new image. Just change image url in below code

<style>
  header#header img {
  	content: url(https://cdn.pixabay.com/photo/2023/09/22/07/02/red-8268266_1280.jpg);
  }
</style>

 

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
On 11/3/2023 at 6:34 AM, tuanphan said:

If you use 7.1 version, you can add this code to each Page Header Code Injection (Hover page name on Main Navigation or Not Linked > Click Gear icon > Advanced). This code will replace current logo on current page with new image. Just change image url in below code

<style>
  header#header img {
  	content: url(https://cdn.pixabay.com/photo/2023/09/22/07/02/red-8268266_1280.jpg);
  }
</style>

 

thank you this totally worked!

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.