JDavies Posted February 23, 2022 Share Posted February 23, 2022 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 Link to comment
Beyondspace Posted February 23, 2022 Share Posted February 23, 2022 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 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 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
JDavies Posted February 24, 2022 Author Share Posted February 24, 2022 thanks, I'll give it a try. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment