Squarespace Membership (Accounts) - Hide Regular Create Account link

With new Squarespace, Membership released you may experience a situation when people may just create accounts as usual and access your Member areas.

At least we may hide Create Account links in regular forms and leave them in Member Signup Forms - to track real Members.

Next code being pasted to Footer injections will hide and remove (for those who know how to open Dev Tools) Create Account link from regular user registration form:

<script> /*! * Hide Create Account Link * Author: Michael Mashay <michael@squarespacewebsites.com> * License: Free to use * 27.05.2021 */ var accountFrameObserver = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if (mutation.type == 'childList' && mutation.addedNodes[0]) { if (mutation.addedNodes[0].id && mutation.addedNodes[0].id == 'accountFrame') { mutation.addedNodes[0].addEventListener('load', function() { var css = 'a[href*="/create"] {display: none}'; var style = document.createElement('style'); style.type = 'text/css'; if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } mutation.addedNodes[0].contentDocument.head.appendChild(style); setTimeout(function() { var create_link = mutation.addedNodes[0].contentDocument.querySelector('a[href*="/create"]'); create_link && create_link.parentNode.removeChild(create_link); }, 200) }) } } }); } ); accountFrameObserver.observe(document.body, { childList: true }); </script>
Previous
Previous

Top 10 Squarespace Plugins

Next
Next

Gallery Block on Squarespace 7.1 pages