unstumpd Posted February 7, 2015 Share Posted February 7, 2015 When you click on the logo at the top of my site it takes you to the page that's been designated the home page. This is all well and good except that I'm trying to use the cover page feature as a splash page. I'd like the logo to link to a different page (my work page) so that you're not being taken back to the coverpage. I can't find anywhere that lets you change where this link takes you. Does anyone know or have a suggestion on how to redirect the link?Thank you! Link to comment
alxfyv Posted February 7, 2015 Share Posted February 7, 2015 The target of the link (your site logo) is hard-set in the HTML code. A regular user has no access to the HTML code. You can style the HTML (affect its presentation on the page) but not change it. A Developer has access to the code but this is advanced coding, not for the initiate. I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward. Link to comment
unstumpd Posted February 8, 2015 Author Share Posted February 8, 2015 Thank you for your timely answer. That makes sense, I guess I was just hoping for an option, haha. You explained the answer very well. Link to comment
benjamin1570047927 Posted February 11, 2015 Share Posted February 11, 2015 Yes. Change the "url" in the code below to be what page you wish it to link to. Copy Paste this into Page Settings > Advanced > Header Injection (do this for every page in your site you require this functionality) <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script>$(document).ready(function () { $(".logo a[href]").attr("href", "http://www.google.com/"); }); </script> Link to comment
alxfyv Posted February 11, 2015 Share Posted February 11, 2015 Like I said, a user without advanced coding skills can't do it. An expert can. Benjamin is an expert. It was nice of him to answer. I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward. Link to comment
unstumpd Posted February 12, 2015 Author Share Posted February 12, 2015 Thank you, this worked perfectly. I appreciate your time and expertise. Link to comment
stephcafasso Posted July 8, 2015 Share Posted July 8, 2015 I am trying to accomplish this using the Marquee template but this code nor any other script that I've tried does not seem to work at all. Any ideas? Link to comment
ptrva Posted September 28, 2015 Share Posted September 28, 2015 thank you! worked for me with .site-title Link to comment
breaktosardinia Posted October 29, 2015 Share Posted October 29, 2015 Can anyone help me with this? I tryed several times but didn t work. I am probably doing something wrong. Thanks Link to comment
jbrown1570047759 Posted December 18, 2015 Share Posted December 18, 2015 For anyone struggling to make this happen with the FIVE template, use: Link to comment
jbrown1570047759 Posted December 18, 2015 Share Posted December 18, 2015 For anyone struggling to make this happen with the FIVE template, use: Link to comment
GetGoingDesign Posted February 8, 2016 Share Posted February 8, 2016 Any clue to make the logo clickable to redirect to home page on mobile version:Five template? I placed the logo on mobile with this code I found on this answer (amazing explanation through all steps) https://answers.squarespace.com/questions/76614/how-can-i-get-logo-to-display-in-mobile-view-for-five-template.html I want to link my logo on mobile site back to home page, is there any code for this? Link to comment
brandallen Posted March 3, 2016 Share Posted March 3, 2016 Hi,Do you happen to know what the ".logo a" counterpart is for the Adversary template? My site is here: http://andy-wynn.squarespace.com/ Thanks for any help you can give! -Brandon Link to comment
brandallen Posted March 3, 2016 Share Posted March 3, 2016 I'm having the same problem... I've pasted the code into the Header Injection area, but it isn't redirecting to our parent site: peopleschurch.tv. Link to comment
trayel Posted March 3, 2016 Share Posted March 3, 2016 Hi There I'm trying to link to our parent site. This is my website http://www.csnwalkertoncollision.com/ - any ideas on what the ".logo a" is for the Five Template? Thank you! Link to comment
natcho Posted July 26, 2016 Share Posted July 26, 2016 Thank you for this! I tried a few other options and this was the winner :) Link to comment
natcho Posted July 26, 2016 Share Posted July 26, 2016 Thank you for this! I tried a few other options and this was the winner :) Link to comment
Trey_SQSP Posted August 8, 2016 Share Posted August 8, 2016 In addition to this, the class or ID assigned to the logo image can change from template to template. For instance, the target for Pacific or Fulton for the logo image would be "#logoImage" rather than ".logo". For Flatiron, use the class ".siteTitle" With that in mind, be sure to inspect the element on your logo image to figure out the ID or class and update the code above accordingly. Link to comment
dialectica Posted October 5, 2016 Share Posted October 5, 2016 hi there guys, i built this website: https://bodega-simonassi.squarespace.com it has two navigations, one for spanish one for english. when you are inside an english page, you only see the english nav, same with spanish. now, when im on the spanish nav and click the logo, it takes me to the spanish home. is there a way that when im on the enligh nav and click the logo for it to take me to the english home ? many thanks ! Link to comment
alucy Posted October 17, 2016 Share Posted October 17, 2016 any ideas on what the ".logo a" is for the Rally Template? Link to comment
alucy Posted October 17, 2016 Share Posted October 17, 2016 any ideas on what the ".logo a" is for the Rally Template? Link to comment
chickenandskateboards Posted November 3, 2016 Share Posted November 3, 2016 I've tried this a a few other variations with no success on my page. It's from the Avenue template. I have this cover page I don't want visitors to keep returning to when they click on the header logo - I'd like them to land back at the gallery page. If anyone can offer me specific help, feel free to check it out: wwww.chickenandskateboards.com Link to comment
chickenandskateboards Posted November 3, 2016 Share Posted November 3, 2016 I've tried this a a few other variations with no success on my page. It's from the Avenue template. I have this cover page I don't want visitors to keep returning to when they click on the header logo - I'd like them to land back at the gallery page. If anyone can offer me specific help, feel free to check it out: wwww.chickenandskateboards.com Link to comment
Guest Posted December 18, 2016 Share Posted December 18, 2016 What about for the logo in the shopping cart during checkout?? I don't want it to go to my homepage. I've tried targeting, but unable to make it work yet. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.