Members and forms

Change what readers see on a locked post

A post is locked for a reader when its access in Ghost is for members, paid members or some tiers, and the reader is not one of them. Ghost then shows only the post's public preview, the part above the divider you set in Ghost's editor. Under it, your theme shows the Paywall, a message and buttons that ask the reader to sign up or upgrade. You design the Paywall in Fantasma; which posts are locked is set in Ghost Admin.

Find the Paywall

  1. Open your project in Fantasma.
  2. In the left sidebar, under Templates, click Post.
  3. At the top of the right sidebar, click the Preview data icon, a dashed square with lines in it, next to Download. In the menu that opens, select Locked post; a check mark shows it is on. The post on the canvas shows as a locked post, with its last lines faded and the Paywall under them.
  4. In the Sections list, click the arrow next to Post Content. Its blocks show under it.
  5. Click Paywall. Its settings open, and the Paywall gets a blue outline on the canvas.
A post shown as locked, its last lines faded, with the Paywall selected under it: a heading, a short invitation, Become a member and a sign-in link

The Post Content section is the part of the Post template that shows the post's text. Every Post Content section holds one Paywall, and you cannot delete it or add a second one. The Page template has its own Post Content section with its own Paywall, for pages whose access you limit in Ghost. To hide the Paywall on some screen sizes or pages, use the rules under Display, as for any block.

What the Paywall holds

The Paywall works like a Group: you change its blocks on the canvas, add blocks with the + on its row, and set its layout and colors in its settings. Its blocks start as:

Block Shows on
Heading "This post is for paying subscribers only" Posts for paid members
Heading "This post is for subscribers only" Posts for members
Heading "This post is for subscribers on the … only" Posts for some tiers. The tier names fill the gap.
Paragraph inviting the reader to become a member Every locked post
Button Become a member Every locked post, for visitors who are not signed in. It opens Ghost's sign-up window.
Button Upgrade your account Every locked post, for signed-in members, free or paid, who lack access. It opens Ghost's plans.
Paragraph "Already have an account? Sign in" Every locked post, for visitors

The three headings show one at a time. Each has a rule in the Display group of its settings, under Show when all match: Paid-members post, Members-only post or Post for chosen tiers. The buttons and the sign-in line have an Audience rule in the same group: Visitors or Members. To show your own text for one access level, add a block and give it the same content condition, as Display settings shows.

Change the message

  1. Click the heading or the paragraph in the Paywall on the canvas.
  2. Type your own words.

The canvas shows only the first heading. To change the other two, click the arrow next to Paywall in the Sections list, click the heading's row, and edit Text in its settings.

The headings hold two pieces of page data, which the Sections list shows as Post or page and Post tiers. On your site, the first prints "post" or "page", and the second prints the post's tiers, such as "Supporter and Patron tiers". In the editor they look like the rest of the text; the Sections list names them.

To change where a button leads, select it and pick another Portal page, such as Plans. Add sign-in, sign-up and account buttons lists the pages.

Preview each case

Locked post always shows the post as one for paid members, with the demo posts and with posts from your own Ghost site. So the canvas shows the first heading, "This post is for paying subscribers only".

Under Preview as in the Preview data menu, select Free member to see the Paywall as a signed-in member sees it. The Become a member button and the sign-in line hide, and Upgrade your account shows. Preview with your Ghost content and members explains the menu.

Turn off Locked post in the same menu to see the whole post again.

Your changes reach readers when you publish the theme again, as Publish your theme to Ghost shows.

Was this article helpful?