mlucero1027 Posted April 26, 2020 Share Posted April 26, 2020 Site URL: http://www.mercedeslucero.com I want to change the site title logo URL. I have scoured the forums but none of the suggested codes have worked for me. Site: www.mercedeslucero.com Home page: www.mercedeslucero.com/home pw: squarespace1 Link to comment
tuanphan Posted April 26, 2020 Share Posted April 26, 2020 Hi. This needs some custom code. Which plan do you use? Personal, BUsiness...? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
darleneboza Posted May 1, 2020 Share Posted May 1, 2020 On 4/26/2020 at 3:46 PM, tuanphan said: Hi. This needs some custom code. Which plan do you use? Personal, BUsiness...? I use personal account, can I still do this? Link to comment
tuanphan Posted May 2, 2020 Share Posted May 2, 2020 On 5/1/2020 at 8:03 AM, darleneboza said: I use personal account, can I still do this? You need Business Plan or higher. Add to Home > Settings > Advanced > Code Injection > Footer <script> document.querySelector('a#site-title').setAttribute('href', 'https://beaverhero.com'); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Matt-NBH Posted May 20, 2020 Share Posted May 20, 2020 On 5/2/2020 at 2:31 PM, tuanphan said: You need Business Plan or higher. Add to Home > Settings > Advanced > Code Injection > Footer <script> document.querySelector('a#site-title').setAttribute('href', 'https://beaverhero.com'); </script> Hey! Would you be able to help me link my site logo to my site /shop page? Been trying all day with a multitude of code but to no avail! I'm using the Brine theme in 7.1 commercial. www.neighbourhoodxdeli.comneighbourhoodxdeli.com Many thanks! Matt Link to comment
tuanphan Posted May 21, 2020 Share Posted May 21, 2020 21 hours ago, Matt-NBH said: Hey! Would you be able to help me link my site logo to my site /shop page? Been trying all day with a multitude of code but to no avail! I'm using the Brine theme in 7.1 commercial. www.neighbourhoodxdeli.comneighbourhoodxdeli.com Many thanks! Matt Add to Home > Settings > Advanced > Code Injection > Footer <script> document.querySelector('.header-title-logo a').setAttribute('href', 'https://beaverhero.com'); </script> replace beaverhero with your shop page url Matt-NBH and HelenCrozier 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Matt-NBH Posted May 21, 2020 Share Posted May 21, 2020 Thanks so much tuanphan! Great help! Link to comment
RyanDejaegher Posted June 19, 2020 Share Posted June 19, 2020 @ipratt, you'll need to share the site password to help troubleshoot Philadelphia, PA 👉 Squarespace Tutorials Chat/Message on FB Messenger for quickest response: https://m.me/dejaegherryan Link to comment
HWE Posted September 6, 2020 Share Posted September 6, 2020 Hi, This worked well for me on the desktop website thanks so much! Is there a way to change the logo link on the mobile site as well? www.hotwireextensions.com Many thanks for your help! Link to comment
tuanphan Posted September 6, 2020 Share Posted September 6, 2020 I don't see logo. Can you share link to exact page? 5 hours ago, HWE said: Hi, This worked well for me on the desktop website thanks so much! Is there a way to change the logo link on the mobile site as well? www.hotwireextensions.com Many thanks for your help! Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
HWE Posted September 12, 2020 Share Posted September 12, 2020 Hi, yes I had some issues with a disappearing logo, but its back again now... https://www.hotwireextensions.com/home I would really like the logo link for the mobile site to go back to the above page Thanks so much! Link to comment
tuanphan Posted September 13, 2020 Share Posted September 13, 2020 15 hours ago, HWE said: Hi, yes I had some issues with a disappearing logo, but its back again now... https://www.hotwireextensions.com/home I would really like the logo link for the mobile site to go back to the above page Thanks so much! <script> document.querySelector('.header-title a').setAttribute('href', 'https://beaverhero.com'); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
HWE Posted September 15, 2020 Share Posted September 15, 2020 Hi, thanks so much for the above... for some reason this doesn't work for the mobile version of the site, the logo is still linking to the landing page instead of the 'home.' Did I do something wrong? I put the script here, Home / settings / advanced / code injector / footer Thanks so much for your help! Link to comment
tuanphan Posted September 18, 2020 Share Posted September 18, 2020 On 9/15/2020 at 5:05 PM, HWE said: Hi, thanks so much for the above... for some reason this doesn't work for the mobile version of the site, the logo is still linking to the landing page instead of the 'home.' Did I do something wrong? I put the script here, Home / settings / advanced / code injector / footer Thanks so much for your help! Try this new code <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-title a').attr('href','https://beaverhero.com'); }); </script> bigpoppapaul and AJZ 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
jrf93 Posted November 20, 2020 Share Posted November 20, 2020 Hi thanks for sharing the above code. For some reason this doesnt work for me and when I enter the code all of my links show up with a black box when hovering. The link in my logo currently directs to playedoutevents.com.au (which is our "cover/home page") we would like it to link to playedoutevents.com.au/home-page-2 (which we'd like to have as our official home page) Would love any help you can provide 🙂 Link to comment
tuanphan Posted November 22, 2020 Share Posted November 22, 2020 On 11/21/2020 at 5:49 AM, jrf93 said: Hi thanks for sharing the above code. For some reason this doesnt work for me and when I enter the code all of my links show up with a black box when hovering. The link in my logo currently directs to playedoutevents.com.au (which is our "cover/home page") we would like it to link to playedoutevents.com.au/home-page-2 (which we'd like to have as our official home page) Would love any help you can provide 🙂 Chage logo link site wide or cover page only? jrf93 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
jrf93 Posted November 22, 2020 Share Posted November 22, 2020 4 hours ago, tuanphan said: Chage logo link site wide or cover page only? Hey Tuan, Site wide if possible so that if they're on the shop page and they click the logo it would take them back to /home-page-2 instead of the cover page which is set up to be like a landing page.. 🙂 Link to comment
anycloud Posted November 23, 2020 Share Posted November 23, 2020 I solved it by using this code Home / Settings / Advanced / Code Injection / Footer <script> document.querySelector('.header-title-logo a').setAttribute('href', '/PAGENAME'); </script> Where PAGENAME = the pagename (after the domain name) tuanphan and bigpoppapaul 1 1 Link to comment
tuanphan Posted November 23, 2020 Share Posted November 23, 2020 On 11/22/2020 at 3:35 PM, jrf93 said: Hey Tuan, Site wide if possible so that if they're on the shop page and they click the logo it would take them back to /home-page-2 instead of the cover page which is set up to be like a landing page.. 🙂 Add to Home > Settings > Advanced > Code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-title-logo a').attr('href','https://beaverhero.com'); }); </script> Replace beaverhero with new url goodmajick and JohnHenry1 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
bigpoppapaul Posted December 12, 2020 Share Posted December 12, 2020 On 11/23/2020 at 4:50 AM, anycloud said: I solved it by using this code Home / Settings / Advanced / Code Injection / Footer <script> document.querySelector('.header-title-logo a').setAttribute('href', '/PAGENAME'); </script> Where PAGENAME = the pagename (after the domain name) Thank you for this @anycloud, I was really struggling with this and this is the only solution that worked for me. Link to comment
JoelleM Posted August 24, 2021 Share Posted August 24, 2021 Hi, I'm working on the same thing and just wondered if anyone had found a solution for this with the mobile site menu logo? The desktop site is working great for me with @anycloud's code from above, but not on mobile. I wonder if it may be complicated by the code I'm using to switch the mobile logo for a white version? I've included that below. I want the site wide header logo to go to /home rather than to the landing page I have set as the homepage. Thanks so much to everyone who takes the time to help out on this forum, I use it all the time. Site: https://riverside-school.squarespace.com/ PW: David123 Relevant bits of code I am using Footer code injection: <script> document.querySelector('.header-title-logo a').setAttribute('href', '/home'); </script> CSS Code:........ /////Change logo for mobile menu///// body.header--menu-open .header-title-logo img { visibility: hidden; } body.header--menu-open .header-title-logo a { background-image: url(https://static1.squarespace.com/static/60ffe2517a7dc330831eaab5/t/61009ddcce2b7c24425b1e2a/1627430364343/school-logo.png); background-size: cover; background-repeat: no-repeat; } Link to comment
JoelleM Posted August 24, 2021 Share Posted August 24, 2021 Ok, in case anyone else here with same issue, I fixed it in a workaround way by adding a 'home' link on the main navigation, and hiding it on desktop like this: (works in 7.1, not tried it on 7.0) @media screen and (min-width:641px) { .header-nav-item:first-child { display: none; } } tuanphan 1 Link to comment
benny25 Posted October 16, 2021 Share Posted October 16, 2021 (edited) Hi! I'm also having the same issue. Joelle's workaround is great but I was wondering if you knew how to hide 'Home' from mobile too. It's currently not working. Or if anyone has found the trick to change the link embedded in the logo for both desktop and mobile, that'd be great. I've read almost every thread and there seems to be the same issue. I'm also trying to do a splash page but change the header logo to be benny.work/work ------------- UPDATE: Thanks to @tuanphan once again 🙂 this code he provided in another thread seems to work for both desktop and mobile! <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-title-logo a').attr('href','https://beaverhero.com'); }); </script> Edited October 17, 2021 by benny25 tuanphan 1 Link to comment
SW_2020 Posted January 6, 2022 Share Posted January 6, 2022 Where would you add the open in new tab on this code? <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-title-logo a').attr('href','https://beaverhero.com'); }); </script> Link to comment
tuanphan Posted January 8, 2022 Share Posted January 8, 2022 On 1/7/2022 at 3:55 AM, SW_2020 said: Where would you add the open in new tab on this code? <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-title-logo a').attr('href','https://beaverhero.com'); }); </script> Change your code to this <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-title-logo a').attr('href','https://beaverhero.com'); $('.header-title-logo a').attr('target','_blank'); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment