Jump to content

Move Member Login to Footer and Remove From Header

Recommended Posts

  • Replies 2
  • Views 134
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi, I assume your footer is a standard section and the Home, Education, The Clinic and Resources links are just in a text block.

To add the member login, I believe you just add your text e.g "Account Login" and make it link to /account

When you visit /account from a link on the site it will open the login pop-up if the visitor is not logged in, or open the account panel if they are logged in.

Follow these instructions to remove the link from your header: https://support.squarespace.com/hc/en-us/articles/115012777327-Customer-accounts?platform=v6&websiteId=6552223eca742b5b58bfcc91#toc-how-account-holders-log-in

Hope that helps.

Andrew

Link to comment

You can add a text: Login under Resources.

Highlight text Login > Click Link Icon > Add this symbol to URL

#login

Make sure "Open in New Tab" is disabled

Next, use this code to Custom CSS box

div.user-accounts-link {
    visibility: hidden !important;
}

Next, use this code to Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
	$('footer.sections [href*="#login"]').on("click", function(event){
  	event.preventDefault();
    $('a.user-accounts-text-link')[0].click();
  })
})
</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

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.