Jump to content

Header logo doens't link to homepage but to error page

Go to solution Solved by Spark-Plugin,

Recommended Posts

Posted

Hi! 

I made a new homepage and now the header logo doesn't link to my homepage but links to the "We couldn't find the page you were looking for..." page. When I check the url it's still the old homepage (which is no longer in use). 

My new home page is set as home page. 

This is the website: https://www.anneloredeklerck.com

Thanks in advance for any tips :)

Posted

Hi @Spark-Plugin thank you so much for your reply! 
The page is already set as homepage, that's the tricky part, not sure where this issue originates.

When I don't put a logo in the header and it's just the site's title it does work properly... but I would prefer to use my logo image  image.png.1dc74e310b28fad92db3da076ae4a541.png

Posted (edited)

@ADADAD, you can still try setting a new page as homepage, just to test, and then setting back to the original one, this might solve the problem, let me know if it does. Your logo is currently redirecting to a URL/ reel. If you have this page, try deleting it.

Edited by Spark-Plugin

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

  • Solution
Posted (edited)

@ADADAD, are you on a Business plan or above? if so, we can try this code:

Go to: Pages > Website Tools  > Code Injection > FOOTER , paste it there and hit save.

<script>
  /* Desktop */
  document.querySelector('.header-display-desktop .header-title-logo a').setAttribute('href', '/home');
   /* Mobile */
  document.querySelector('.header-display-mobile .header-title-logo a').setAttribute('href', '/home');  
</script>

 

Edited by Spark-Plugin

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.