πŸ’‰ Code Injection Paste in: Header

Hide the Floating Portal Subscribe Button

Remove the round floating Subscribe button Ghost pins to every page β€” sitewide or on specific pages only. Copy-paste CSS for any Ghost theme.

#portal #membership #css #ui

Ghost’s Portal adds a round floating button (usually bottom-right) to every page of your site. There is an official switch to turn it off β€” Settings β†’ Membership β†’ Signup portal β†’ Customize β†’ Look & feel β†’ Show portal button β€” and if you never want it anywhere, use that switch instead of code.

Where this snippet earns its place is the case the setting can’t handle: hiding the button on specific pages only β€” a landing page with its own signup form, a documentation section, or anywhere the floating button competes with your own call to action. Because Portal is part of Ghost itself (not your theme), this works identically on every theme.

The Code β€” hide it everywhere

Paste into Settings β†’ Code injection β†’ Site header:

<style>
iframe[title="portal-trigger"] {
display: none !important;
}
</style>

The Code β€” hide it on one page only

Ghost gives every page and post a body class based on its slug (.page-<slug> / .post-<slug>). Use it to scope the rule β€” this example hides the button only on a page whose slug is pricing:

<style>
.page-pricing iframe[title="portal-trigger"] {
display: none !important;
}
</style>

You can also paste that <style> block into a single post or page’s own Code injection panel (post settings β†’ Code injection) instead of sitewide settings β€” then no body class is needed:

<style>
iframe[title="portal-trigger"] { display: none !important; }
</style>

How It Works

Portal renders its floating trigger as an iframe with the title portal-trigger. The CSS targets that iframe directly and hides it. Portal itself keeps working β€” signup and sign-in links using #/portal/ still open the Portal modal; only the floating button disappears.

Works With

Every Ghost theme β€” Portal is Ghost core, not theme markup. All Luxe themes are compatible, and their membership pages include styled signup buttons, so most Luxe sites hide the floating button and let the theme’s own calls-to-action do the work.