Jump to content

Change site logo header on one PORTFOLIO Page

Recommended Posts

Site URL: https://www.studiorollo.com/creations

 

 

 

 

Hi there, 

 

The beneath code has worked for me, however. I only want to have the alternative logo on the main portfolio grid page. Not in any of the sub pages. 

How can I do this? 

Thanks!

 

<style>

  .header-title-logo img {
  visibility: hidden;
}

.header-title-logo a {
background-image: url(https://static1.squarespace.com/static/61f5cc0be7e75c734cc1b632/t/620a7f19227f095ddeb94a5a/1644855066029/StudioRollo_LogoS_Horizontal_Parsley.png);
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
}
</style>

Link to comment
  • Replies 3
  • Views 486
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

28 minutes ago, studiorollo said:

Site URL: https://www.studiorollo.com/creations

 

 

 

 

Hi there, 

 

The beneath code has worked for me, however. I only want to have the alternative logo on the main portfolio grid page. Not in any of the sub pages. 

How can I do this? 

Thanks!

 

<style>

  .header-title-logo img {
  visibility: hidden;
}

.header-title-logo a {
background-image: url(https://static1.squarespace.com/static/61f5cc0be7e75c734cc1b632/t/620a7f19227f095ddeb94a5a/1644855066029/StudioRollo_LogoS_Horizontal_Parsley.png);
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
}
</style>

You can try adding to the page id in your code

#page-id .header-title-logo img {
  visibility: hidden;
}

#page-id .header-title-logo a {
  background-image: url(https://static1.squarespace.com/static/61f5cc0be7e75c734cc1b632/t/620a7f19227f095ddeb94a5a/1644855066029/StudioRollo_LogoS_Horizontal_Parsley.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

You can try using the extension Squarespace ID Finder: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

Here is how you can get the page id: http://recordit.co/qwnj09oNCa

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
On 2/15/2022 at 7:18 PM, studiorollo said:

Hey thank you,

So I have the page ID now – but where do I insert it in the script? 

And also do I put it on the Design CSS, or in the individual page? 

Thank you!!

Add this to Portfolio Page Header

<style>
body.view-list .header-title-logo img {
  visibility: hidden;
}

body.view-list .header-title-logo a {
  background-image: url(https://static1.squarespace.com/static/61f5cc0be7e75c734cc1b632/t/620a7f19227f095ddeb94a5a/1644855066029/StudioRollo_LogoS_Horizontal_Parsley.png);
  background-size: contain;
  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

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.