rditty Posted July 6, 2022 Share Posted July 6, 2022 Site URL: https://www.robertditty.com/ Hello! I know this question has been asked before but I couldn't find an answer for the Wells template. I just want my site logo on all of my pages to link to my navigation homepage ( https://www.robertditty.com/design-home ) instead of my coverpage ( https://www.robertditty.com/ ) ? Thanks for your help! Link to comment
tuanphan Posted July 7, 2022 Share Posted July 7, 2022 Add to Settings > Advanced > Code Injection > Footer <script> document.querySelector('#logo .logo.image a').setAttribute('href', '/design-home'); </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
dago_perez Posted August 9 Share Posted August 9 @tuanphan I am also having this issue. I tried to add this code to custom css but it did not work. I can't seem to find the advanced>code injection>footer section anymore. Seems it might have been moved or discarded? I have many galleries so I can't really add a code block. Any thoughts on how I can manage this? dagoperez.com https://dagoberto-perez.squarespace.com/config/ Thanks! Link to comment
paul2009 Posted August 10 Share Posted August 10 (edited) On 8/9/2023 at 9:56 PM, dago_perez said: I can't seem to find the advanced>code injection>footer section anymore. Squarespace are making changes to the editor navigation at the moment. They have moved Code Injection to Settings > Developer Tools > Code Injection > Footer. <script> document.querySelector('#logo .logo.site-title a ').setAttribute('href', '/name-of-page-goes-here'); </script> Did this help? Please give feedback by clicking an icon below ⬇️ Edited September 22 by paul2009 edited for clarity - use footer About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
dago_perez Posted September 22 Share Posted September 22 Hi @paul2009 Thanks for the response. I tried the code above but still no solution. Just to clarify, I have my cover page as my homepage (dagoperez.com) and once a user presses the "enter" cta it goes to my galleries and full navigation. But if you then click my site logo (my name), it goes back to the cover page. I'd like it to send the user to the first gallery instead (dagoperez.com/paintings). Is the code above the correct one for this issue? I modified the code above with my page (...'href', '/paintings') . Link to comment
paul2009 Posted September 22 Share Posted September 22 1 hour ago, dago_perez said: I tried the code above but still no solution. Almost there! The code quoted in Tuan's post is for a Wells site that has an image as the site logo. On your site you have a site title (text, not an image) so the code is slightly different: <script> document.querySelector('#logo .logo.site-title a').setAttribute('href', '/paintings'); </script> I hope this helps! Did this help? Please give feedback by clicking an icon below ⬇️ dago_perez 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. 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