Jump to content

Make logo on password page clickable

Recommended Posts

Hi, I have an "archive" page on one of my websites, which has a password to get in. But the logo on the page is not clickable - on my regular pages, the logo opens a menu (custom Will Myers mega menu plugin), which I would also like to have that way for my password page.. so that people can get back to the site after viewing the page. Is there any way to achieve this? My page is https://shorturl.at/ABUXY (shortened URL), password is zuerich.

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Add this code to Website Tools > Code Injection > LOCK PAGE

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$(".sqs-slice-group.group-top img").click(function() {
			var link = $(this).text(),
				href = "https://google.com";
			window.location.href=href;
		});
});
</script>
<style>
  .sqs-slice-group.group-top img {
  	cursor: pointer;
  }
</style>

Replace GG with new url

Edited by tuanphan

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

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.