Jump to content

Change Site title to navigate to another page

Recommended Posts

Site URL: https://www.suemcnenly.com/

Hey there.  I used the custom css to create a cover page for my 7.1 site by getting rid of the header/footer.  Now my problem is that when you enter the site from the cover page and ever want to navigate back to the true home page (not the cover page) when clicking on Site Title, it brings you back to the Cover page.   I only want the cover page to appear when people first go to my site on a unique visit.  I'd be grateful for the custom CSS that will make that happen. 

Thanks!

Link to comment
  • Replies 2
  • Created
  • Last Reply

Got the answer via another forum.  Here it is, if anyone else needs it.  Thanks to @tuanphan:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("#site-title").attr("href", "https://yourwebsitenamehere/home");
});
</script>

Link to comment

Add to Page Settings > Advanced > Header

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("#site-title").attr("href", "https://beaverhero.com");
});
</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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.