Jump to content

Custom code for logo image SS 7.1

Recommended Posts

Site URL: https://harvestercapital.com

Hello, I tried searching for information about this, but was only able to find questions related to different versions of SS (I'm on 7.1), which I tried just to check, and was unsuccessful.

In my page, I have a dark and a light view depending on page. I have a dark and light logo image, and would like to substitute the primary logo file for the alternate for the pages with light background. (I chose dark for the home page). 

I would imagine there is a relatively simple code injection that can be added to each page referencing the alternate file I uploaded under Design>Custom CSS>Manage Custom Files. 

Any help is appreciated.

Link to comment
  • Replies 2
  • Views 439
  • Created
  • Last Reply

To change logo on One Page, add to Page Settings > Advanced > Header

<style>
  .header-title-logo img {
    visibility: hidden;
}
.header-title-logo a {
    background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
</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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.