Jump to content

Is there a way to have a homepage logo alternate to match the changing light/dark theme of a template?

Go to solution Solved by tuanphan,

Recommended Posts

Hey! First time posting here. Using the Forte theme on my website, which runs a slideshow of images as the main background for my homepage and alters the navigation menu to a light or dark theme based on the current slideshow image in order to keep it nice and visible (i.e. if the current slideshow image is a darker one, the navigation menu will appear in white text, switching to black text if the next image is a lighter one).

My question is: I've got my logo displayed in one corner of my homepage, and I'd like to cue it to also switch between a light and dark version based on the slideshow. Is there a way to do this, idk... inverting the logo's colour or something? Or uploading two versions of the logo? Open to ideas.

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

4 hours ago, atomicblue said:

Hey! First time posting here. Using the Forte theme on my website, which runs a slideshow of images as the main background for my homepage and alters the navigation menu to a light or dark theme based on the current slideshow image in order to keep it nice and visible (i.e. if the current slideshow image is a darker one, the navigation menu will appear in white text, switching to black text if the next image is a lighter one).

My question is: I've got my logo displayed in one corner of my homepage, and I'd like to cue it to also switch between a light and dark version based on the slideshow. Is there a way to do this, idk... inverting the logo's colour or something? Or uploading two versions of the logo? Open to ideas.

Can you share your site with the protected password so I can take a look?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • Solution
On 11/4/2022 at 9:51 AM, atomicblue said:

Yeah, no problem - it's not password-protected.

At present the URL is http://brianoneill.photography/portfolio

The logo says "Lloyd Byrd", though - I'm in the process of establishing an artist alias so don't pay the name difference any mind.

Try adding to Design > Custom CSS

div#canvas.color-weight-light header img {
    filter: invert(1);
}

Dark is color-weight-dark

Light is color-weight-light

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.