Jump to content

How to change logo on just my home page but NOT when you click to my projects pages

Recommended Posts

Site URL: https://www.ryaneatondesign.com

Hey I need help, my main home page is my projects page, its my graphic design portfolio. I figured out how to use custom code to change my logo on my projects page but then it changes it for all my projects, where I just want it to be on the home page. How can I have it just be the home page? My projects arent separate pages, just linked off the main projects page (home page).

Link to comment
17 hours ago, Ryanseaton said:

Site URL: https://www.ryaneatondesign.com

Hey I need help, my main home page is my projects page, its my graphic design portfolio. I figured out how to use custom code to change my logo on my projects page but then it changes it for all my projects, where I just want it to be on the home page. How can I have it just be the home page? My projects arent separate pages, just linked off the main projects page (home page).

Which code are you using to implement it? I think we can select only home page with the id #collection-6106b66d6230ff5c6f0bcbf1 that it can not affect on other pages. 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
49 minutes ago, bangank36 said:

Which code are you using to implement it? I think we can select only home page with the id #collection-6106b66d6230ff5c6f0bcbf1 that it can not affect on other pages. 

thanks for your response! heres the code I used to get it to be different on my shop and about page: 

<style>
.header-title-logo a {
  content: url("https://static1.squarespace.com/static/6106b6391d281b2c673d9f03/t/61afd1b81266694059d3f84a/1638912440681/Ryan+Eaton.gif");
  }
</style>

 

Link to comment
14 hours ago, Ryanseaton said:

thanks for your response! heres the code I used to get it to be different on my shop and about page: 

<style>
.header-title-logo a {
  content: url("https://static1.squarespace.com/static/6106b6391d281b2c673d9f03/t/61afd1b81266694059d3f84a/1638912440681/Ryan+Eaton.gif");
  }
</style>

 

So you can try

<style>
  #collection-6106b66d6230ff5c6f0bcbf1 .header-title-logo a {
    content: url("https://static1.squarespace.com/static/6106b6391d281b2c673d9f03/t/61afd1b81266694059d3f84a/1638912440681/Ryan+Eaton.gif");
  }
</style>

Instead of the one you set before

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Hi @bangank36 I'm trying to do this too but this code didn't work for me. I changed the collection to the page I want and then added the new logo in custom files. It seems to have a problem with the Style at the beginning and end and says there's a syntax error at line 1. Do I need to upgrade my Squarespace to be able to do this? 

It would be great to be able to have different logos in the header for different pages so the colours don't clash. 

Thanks in advance! 

Oz Smith

Link to comment
24 minutes ago, Oz_Soma said:

Hi @bangank36 I'm trying to do this too but this code didn't work for me. I changed the collection to the page I want and then added the new logo in custom files. It seems to have a problem with the Style at the beginning and end and says there's a syntax error at line 1. Do I need to upgrade my Squarespace to be able to do this? 

It would be great to be able to have different logos in the header for different pages so the colours don't clash. 

Thanks in advance! 

Oz Smith

Can you share the screenshot of your code on your site?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Hi, here's my CSS (I'm sure very messy as I am a beginner!) 

 

.header-nav *, nav.header-menu-nav-list * {
    font-family: 'halisa';
}

.header-nav-item--active a {
   background-image: none;
}
.header-nav-wrapper a {
    background-image: none !important;
}

<style>
  #collection-61aea4707f67916f746be687 .header-title-logo a {
    content: url("https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61d26232a1725e72615bed4e/1641177651022/Soma-Logo-Anim_Grey.gif");
  }
</style>

///.header {
///  background: transparent!important;
///}


@media screen and (min-width:768px) {
.header-announcement-bar-wrapper {
    padding-left: 10vw !important;
    padding-right: 5vw !important;
}
}

@font-face {   
font-family: 'halisa';   
src: url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/619588e0523c051cdf3f897e/1637189856813/Halisa-WideHeavy.otf), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/619588abdb29ba04a1b69ea1/1637189803626/halisa-wideheavy-webfont.woff), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/619588c27e8fda04319b9cac/1637189826899/halisa-wideheavy-webfont.woff2);}

h1 {
font-family: 'halisa';}

h2 {
font-family: 'halisa';}

h3 {
font-family: 'halisa';}

h4 {
font-family: 'halisa';}


@font-face {   
font-family: 'scto';   
src: url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61959ba47859f12c70aaa553/1637194661318/Scto+Grotesk+A+Regular.otf), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61959bac579b1b5951253694/1637194668697/Scto+Grotesk+A+Regular.woff), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61959bb1e3e2dd1e56e70e41/1637194673915/Scto+Grotesk+A+Regular.woff2);}


.sqsrte-small {
font-family: 'scto';}

.sqsrte-large {
font-family: 'scto';}


@font-face {   
font-family: 'tiempos';   
src: url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61a8688113634b669d4d440f/1638426754256/TiemposText-Regular.otf), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61a86887222ebe3388963345/1638426759723/TiemposText-Regular.woff), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61a8688a427a424e5f63298e/1638426762592/TiemposText-Regular.woff2);}

p {
font-family: 'tiempos';}

h3.portfolio-title {  
font-size: 70px!important;
}

h1, h2, h3, h4 {
    font-family: 'halisa' !important;
}

Link to comment
On 1/3/2022 at 11:33 AM, Oz_Soma said:

Hi, here's my CSS (I'm sure very messy as I am a beginner!) 

 

.header-nav *, nav.header-menu-nav-list * {
    font-family: 'halisa';
}

.header-nav-item--active a {
   background-image: none;
}
.header-nav-wrapper a {
    background-image: none !important;
}

<style>
  #collection-61aea4707f67916f746be687 .header-title-logo a {
    content: url("https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61d26232a1725e72615bed4e/1641177651022/Soma-Logo-Anim_Grey.gif");
  }
</style>

///.header {
///  background: transparent!important;
///}


@media screen and (min-width:768px) {
.header-announcement-bar-wrapper {
    padding-left: 10vw !important;
    padding-right: 5vw !important;
}
}

@font-face {   
font-family: 'halisa';   
src: url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/619588e0523c051cdf3f897e/1637189856813/Halisa-WideHeavy.otf), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/619588abdb29ba04a1b69ea1/1637189803626/halisa-wideheavy-webfont.woff), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/619588c27e8fda04319b9cac/1637189826899/halisa-wideheavy-webfont.woff2);}

h1 {
font-family: 'halisa';}

h2 {
font-family: 'halisa';}

h3 {
font-family: 'halisa';}

h4 {
font-family: 'halisa';}


@font-face {   
font-family: 'scto';   
src: url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61959ba47859f12c70aaa553/1637194661318/Scto+Grotesk+A+Regular.otf), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61959bac579b1b5951253694/1637194668697/Scto+Grotesk+A+Regular.woff), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61959bb1e3e2dd1e56e70e41/1637194673915/Scto+Grotesk+A+Regular.woff2);}


.sqsrte-small {
font-family: 'scto';}

.sqsrte-large {
font-family: 'scto';}


@font-face {   
font-family: 'tiempos';   
src: url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61a8688113634b669d4d440f/1638426754256/TiemposText-Regular.otf), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61a86887222ebe3388963345/1638426759723/TiemposText-Regular.woff), 
  
url(https://static1.squarespace.com/static/5ed74460ff76d55e5f153ed9/t/61a8688a427a424e5f63298e/1638426762592/TiemposText-Regular.woff2);}

p {
font-family: 'tiempos';}

h3.portfolio-title {  
font-size: 70px!important;
}

h1, h2, h3, h4 {
    font-family: 'halisa' !important;
}

remove <style> & </style> & try this code

#collection-6106b66d6230ff5c6f0bcbf1 .header-title-logo a {
    content: url("https://static1.squarespace.com/static/6106b6391d281b2c673d9f03/t/61afd1b81266694059d3f84a/1638912440681/Ryan+Eaton.gif");
  }

 

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

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.