akhaghani Posted May 10, 2017 Share Posted May 10, 2017 My logo for my site is white and it doesn't show up on all the pages other then my homepage so I'm trying to find a way to put a color logo on other pages then the home page, http://www.sparkleaders.org/about/ Any help would be very appreciated! Thanks,Amir Link to comment
jackforbes Posted July 22, 2017 Share Posted July 22, 2017 You can inject this code onto the page you want to change the logo: <script> window.onload = function() { document.getElementsByClassName('Header-branding-logo')[0].src = 'URL_TO_IMAGE'; }; </script> If you don't want to host the image yourself, you can upload the logo to Squarespace, grab its url, then change the logo to the default one that you want. Then you'll have a url to the Squarespace logo url that you want to inject above, in the form '//static1.squarespace.com/static/ID/t/ID/ID/'. Co-founder of www.padpiper.com Link to comment
mattvs Posted March 29, 2018 Share Posted March 29, 2018 Do you know how to make this work on the Carson Template? I tried a different piece of code but doesn't give me a nice result (image is way too big and blurry when downscaled). Thanks! page https://mattvs.squarespace.com/matthijswebsite https://mattvs.co Link to comment
WillMyers Posted March 31, 2018 Share Posted March 31, 2018 Mattvs, this one works for me on Carson. <script> $(function() {$('#siteHeader').find('img').attr('src', 'https://static1.squarespace.com/static/5a5ec2d9d7bdcef66b1db7a2/t/5abf532e6d2a73e772961e57/1522488114208/Sewn.techLogo_Large.png?format=750w')}) </script> Hey-o, my name is Will and I help Squarespace designers and developers with technical things. I would be happy to answer any questions you have about Javascript, CSS, or the meaning of life - although I'm only an expert in 2 of these. Check out my plugin store or sign up for my newsletter. Link to comment
mattvs Posted April 3, 2018 Share Posted April 3, 2018 Thanks for sharing but doesn't seem to work for me unfortunately... Link to comment
brittainkovac Posted October 24, 2018 Share Posted October 24, 2018 @mattvs , did you find a code that worked for Carson? I'm dealing with the same issue. Thanks! Link to comment
ranjchandra Posted February 1, 2019 Share Posted February 1, 2019 learn how to activate jiotunes Link to comment
natalienet Posted November 11, 2019 Share Posted November 11, 2019 Who knows how to change the logo on both desktop (the JackForbes code worked for me on desktop) and mobile? I'm using Brine. Thanks. Link to comment
Legacy Posted December 7, 2019 Share Posted December 7, 2019 @natalient https://bigcatcreative.com/blog/change-mobile-logo-brine-squarespace Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.