Jump to content

hide create account link on sign in lightbox

Recommended Posts

Site URL: https://www.usla.ca/account/login

Does anyone know how to hide the "create account" link on the sign in lightbox? 

I don't have a basic subscription without the ability to add code other than CSS. When I add custom css it doesn't affect the lightbox. 

The problem is I only offer accounts for member areas and don't sell items on my site, creating an account creates an customer account but not a member area account.

TIA

squareSpaceSigninScreen.jpg

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

4 hours ago, JDavies said:

Site URL: https://www.usla.ca/account/login

Does anyone know how to hide the "create account" link on the sign in lightbox? 

I don't have a basic subscription without the ability to add code other than CSS. When I add custom css it doesn't affect the lightbox. 

The problem is I only offer accounts for member areas and don't sell items on my site, creating an account creates an customer account but not a member area account.

TIA

squareSpaceSigninScreen.jpg

You can try adding to Home > Settings > Advanced > Code injection choose footer

<script>
  (function(){
    window.onload = function() {
      let frameElement = document.getElementById("accountFrame");
      if(frameElement) {
        let doc = frameElement.contentDocument;
        doc.body.innerHTML = doc.body.innerHTML + '<style> #user-account-login-root [href *= "create"] {display:none;} #user-account-login-root [href *= "login"] {padding:0;}</style>';
      }
    }
  })()

</script>

Let me know how it works on your site

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.