Twitter Linkedin Facebook

Remove Membership Buttons

Not everyone needs or wants membership functionality. Remove those pesky buttons with a few lines of JavaScript.

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.

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


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.