Skip to content
Remove Membership Buttons

Remove Membership Buttons

Maybe you don't want to have sign-ups on your site. No problem! Add the script below to Settings > Code Injection > Footer.

<script>
    function removeMembership() {
        const memberElements = document.querySelectorAll(".sm-members");
        memberElements.forEach(el => el.remove())
    }

    removeMembership()
</script>    

This script only removes the sign in and sign out buttons. Remember that you also need to disable membership in the Ghost admin Member area, specifically under Access and Portal.

Ghost will hopefully make this script unnecessary in the future, so check back to see when you can remove it from your site.