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...
  • Replies 1
  • Created
  • Last Reply

have you got it done yet?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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

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.