melissahurt Posted November 14, 2019 Share Posted November 14, 2019 I need the logo on my home page (technically, my welcome page) to link to my welcome/home page and NOT my landing page. I changed the code in the footer, but I need to change the header link. The code there is very long! Not sure what to change. Who can advise, please? I have the Sonora template. Thanks! Link to comment
paul2009 Posted November 14, 2019 Share Posted November 14, 2019 It's usually a case of adding something like this to Settings > Code Injection > Footer: window.Squarespace.onInitialize(Y, function(){ document.querySelector('.Header-branding').setAttribute('href', '/about-us-sonora'); }); Change '/about-us-sonora' to be the URL of the page you want visitors to reach when they click the logo. Let me know how you get on. As you didn't include a working link to your site in the question I wasn't able to test it. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
junecz Posted December 14, 2019 Share Posted December 14, 2019 This didn't work for me. I want the logo image on this page Snyder-Group.com to link to this page. I replaced .Header-branding with .site-branding and made the needed change to the url, but it's still linking to the home page. Appreciate any other ideas. Link to comment
tuanphan Posted December 14, 2019 Share Posted December 14, 2019 19 minutes ago, junecz said: This didn't work for me. I want the logo image on this page Snyder-Group.com to link to this page. I replaced .Header-branding with .site-branding and made the needed change to the url, but it's still linking to the home page. Appreciate any other ideas. replace to .image a <script> window.Squarespace.onInitialize(Y, function(){ document.querySelector('.image a').setAttribute('href', '/about-us-sonora'); }); </script> 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
junecz Posted December 14, 2019 Share Posted December 14, 2019 Fantastic - that did it! Thank you so much. Link to comment
peterbjerg Posted December 22, 2019 Share Posted December 22, 2019 I have the same problem with the AVENUE template. Id like to ask Paul2009 and others, if they now a code, that works with AVENUE (to make site icon link, NOT to the homepage (the cover page), but to my index page (or any other, for that sake). I have used another code injection for another site, that actually makes the site icon link to chosen page, but with Avenue, something else is messed up, so that the index page malfunctions. Link to comment
paul2009 Posted December 22, 2019 Share Posted December 22, 2019 @peterbjerg It helps us if you can provide a working link to the site. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
peterbjerg Posted February 25, 2020 Share Posted February 25, 2020 Thans Paul & others. Figured it out with the help of Tuaphan (SS Circle hero). Used this script: <script> document.querySelector('.header-title-logo a').setAttribute('href', '/home'); </script> Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.