Jump to content

Change the logo on one page (mobile)

Recommended Posts

Site URL: https://llama-banjo-knmn.squarespace.com/

I'm trying to use an alternate logo on my homepage on both desktop and mobile. I used the code below to get it to work on desktop, but it isn't translating to mobile. Help? (website pw is 1234)

 

<script>
 window.onload = function() {
   document.querySelectorAll('.header-title-logo img')[0].src = 'https://static1.squarespace.com/static/5f748be0d2d091125c469cfb/t/5f7b4d748ed830435bb80d66/1601916276796/Asset+2.png';
 };
</script>

Link to comment
  • 2 weeks later...

have you got it done yet?

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

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.