Remove the "Powered by Ghost" Tag from the Newsletter Portal (Ghost Blog)

Remove the "Powered by Ghost" tag from Ghost Portal

Remove the "Powered by Ghost" Tag from the Newsletter Portal (Ghost Blog)
Photo by Arnold Francisca 

Remove the "Powered by Ghost" tag from Ghost Portal

In Settings → Code Injection, add this text to the "Site footer":

<script>
window.onload = function () {
    let portal = document.getElementById("ghost-portal-root");
    const interval = setInterval(() => {
        let frame = portal.querySelector('[title="portal-popup"]');
        if (frame !== null) {
            const styleElement = document.createElement("style");
            styleElement.innerHTML = `.gh-portal-powered { display: none; }`;
            frame.contentDocument.head.appendChild(styleElement);
        } else {
            frame = null
        }
    }, 300)
}
</script>

Ian Greer © . All rights reserved.