Ghostline

Ghostwriting & Book Publishing WordPress block theme · Version 1.0.0 · Documentation

1. Introduction

Ghostline is a WordPress block theme (Full Site Editing) for ghostwriting, book editing and book publishing agencies. You edit content in the normal block editor and the design in Appearance → Editor. There is no page builder to learn and nothing locked in shortcodes.

The download contains:

  • ghostline.zip: the theme, with three style variations: Classic, Modern and Manuscript.
  • ghostline-toolkit.zip: the free companion plugin. It adds one-click demo import and the Lead Form block, which stores leads with a consent record and can send them to your CRM through a webhook.
  • documentation/: this guide. licensing/: the Ghostline license (split: PHP under the GPL, everything else proprietary) and the font licenses.
Classic demo home page
Classic: warm paper, ink navy, bronze
Modern demo home page
Modern: navy, cyan and pale aqua
Manuscript demo home page
Manuscript: paper, ink and an editor's red pencil

2. Requirements

  • WordPress 6.6 or newer (tested up to 7.1)
  • PHP 7.4 or newer (8.1 or newer recommended)
  • "Post name" permalinks are recommended. The importer can switch them for you.

Ghostline loads its fonts from your own server. It makes no requests to Google Fonts or other third parties on the front end.

3. Installation

Install the theme

  1. Go to Appearance → Themes → Add New → Upload Theme.
  2. Choose ghostline.zip (not the whole download), click Install Now, then Activate.

Install Ghostline Toolkit

  1. Go to Plugins → Add New → Upload Plugin. The theme's welcome notice has an Upload Ghostline Toolkit button that opens this screen.
  2. Choose ghostline-toolkit.zip from your download, click Install Now, then Activate.
  3. Open Appearance → Ghostline Setup, activate your license (below), then import a demo.

Activate your license

Demo import, the Lead Form and automatic updates need an active license on the website.

  1. Copy your license key from your purchase email or from your account at ghostlinetheme.com/account.
  2. Paste it under Appearance → Ghostline Setup → License and click Activate.

The panel shows how many of your plan's websites are in use and when the license renews. To move the license to another website, click Deactivate on this website first (or deactivate the site from your account).

Staging and local sites (for example localhost, *.local, *.test or staging. addresses) don't count towards your plan's websites.

Agencies can set the key in wp-config.php instead: define( 'GHOSTLINE_LICENSE_KEY', 'your-key' );, then click Activate once.

If your license expires

Your website keeps working: pages, the design, menus and saved leads are never changed or removed. Until you renew, demo import and updates are off, and the Lead Form is hidden from visitors (administrators see a notice in its place). Renewing turns everything back on; click Check now to refresh straight away.

If our license server can't be reached, your license keeps working for 14 days.

The theme works without the plugin. You still get every pattern and template, but no demo import and no Lead Form; patterns that contain a form show a simple contact card instead.

4. Importing a demo

Open Appearance → Ghostline Setup. Each demo card has Preview (the live demo) and Import.

Ghostline Setup screen with demo cards and import options
OptionWhat it does
Import images into the Media LibraryCopies the demo's covers, illustrations and logo into your Media Library (on by default). When off, images are linked from the plugin folder instead.
Replace the front page, menu, header and footerSets the demo Home as your front page, creates the header menu and applies that demo's header and footer (on by default).
Permanently delete previously imported Ghostline demo content firstRemoves only what an earlier Ghostline import created (off by default). Your own posts and pages are never touched.
Switch to "Post name" permalinksOnly shown when your permalinks are "Plain".

One import creates the 15 pages (Home, Services, five service pages, Pricing, Portfolio, About Us, Contact, FAQ, Privacy Policy, Terms of Service and Refund Policy). It also adds three sample blog posts, the menu, header and footer, applies the style variation, and sets your site title, tagline and logo.

The import runs in small steps, so it does not time out on shared hosting. Importing again updates the same pages instead of duplicating them.

After importing

  • Settings → General: set your business name and tagline.
  • Search the pages for (555) and hello@example.com and replace them with your real phone number and email. They also appear in the top bar, header and footer, which you edit in the Site Editor.
  • Delete or replace everything tagged "Sample": books, reviews, team profiles and figures. All demo people, books and numbers are fictional.
  • Complete the legal pages (see Privacy & compliance).

5. Editing pages

Every page is made of ordinary core blocks: groups, headings, paragraphs, images, buttons, lists and details. Click any text to change it, and use the block toolbar to move, duplicate or remove sections. Use List View (the list icon at the top left) to see each section by name, for example "Hero", "Services" or "Call to action".

  • Images: select an image and choose Replace. Illustrations use the "Rounded media" style, which keeps a 3:2 crop, so a photo drops straight in.
  • Book covers: use the "Book cover" image style (2:3 ratio, book shadow).
  • New pages: when you create a page, WordPress offers the Ghostline: Pages patterns (Services, Service detail, Pricing, About and others) as starting points.
  • Templates: imported pages use the Page (no title) template, because each page starts with its own hero; legal pages use Legal page. You can change this in the page settings sidebar.

7. Style variations

Go to Appearance → Editor → Styles and pick Classic (the default), Modern or Manuscript. Every pattern works in every variation, because they only use the theme's color, font, size and spacing presets.

To fine-tune, open Styles → Colors or Typography. The palette uses role-based names such as Base, Contrast, Accent, Line, Link text, Dark and On Dark, so one change updates the whole site.

Keep text readable: use Link text or Contrast for text on light backgrounds. In the Modern variation, Accent is a bright cyan meant for buttons and highlights, not for small text on white.

8. Patterns & block styles

In the block inserter, open Patterns. Ghostline adds four categories:

  • Home pages: Home: Classic, Home: Modern and Home: Manuscript.
  • Heroes: hero with lead form, and a page hero.
  • Sections:
    • promise strip, service cards, service rows, service tiles, process steps, stats, why us
    • packages, pricing cards, comparison table, add-ons
    • book shelf, case studies, reviews, team, values, genres
    • FAQ, contact form and details, call to action, top bar
  • Pages: complete page layouts, including the three legal templates.

Block styles appear in the Styles panel of the block settings:

BlockStyles
GroupCard, Outlined, Offset shadow, Light band, Dark band, Book card, Manuscript page
ImageBook cover, Rounded media, Accent icon (colors a line icon with the accent color)
GalleryBook fan (three covers fanned out)
ParagraphEyebrow, Sample tag, Badge, Initials avatar, Circle badge, Watermark, Handwritten, Sticky note
ListPromise dots, Plain links
DetailsFAQ row
TableComparison
ButtonOutline, Light on dark

On the Manuscript page, red-pen edits use the editor's own Strikethrough format and Highlight color (shown in handwriting), so you can rewrite them freely.

9. Lead Form

Add the Lead Form block anywhere (it's in the Widgets category). In the block settings you can change:

  • the heading, intro text, button label and success message;
  • which fields show and which are required: name, email, phone, book stage, genre, timeline and message;
  • the consent text. Leave it empty to use the default, which mentions calls, texts and emails, including by automated means, and says consent is not a condition of purchase. {site name} is replaced with your site title.

The form works with and without JavaScript. Spam protection is built in: a hidden honeypot field, a minimum time before submitting, a signed form token, and a limit of 5 leads per visitor IP every 10 minutes.

Caching: the form works on pages cached by plugins such as WP Rocket, LiteSpeed Cache or Cloudflare. Tokens on cached pages stay valid for 30 days, so make sure your cache expires sooner than that.

Behind a proxy or load balancer? The rate limit uses each visitor's IP address. If all your traffic arrives from one proxy IP, return the real visitor IP from the ghostline_toolkit_lead_ip filter, or change the limit:

// In a small custom plugin:
add_filter( 'ghostline_toolkit_lead_rate_limit', fn() => 10 );  // 0 disables it

10. Managing leads

Every submission appears under Leads in the admin menu (administrators only). You can filter by month and book stage, open a lead to see all fields, and click Export CSV to download the current list.

Leads list with stage filter and Export CSV button

Each lead keeps a consent record:

  • whether consent was given, and the exact consent text the visitor saw;
  • the date and time (UTC), IP address and browser user agent;
  • the page URL, the referrer and any UTM campaign parameters.

Keep this record. It is evidence of consent for US telemarketing rules (TCPA).

Email notifications go to the site admin email by default. Change the recipients in Settings → Ghostline Leads.

11. Webhook

In Settings → Ghostline Leads, enter a Webhook URL (for example a Zapier, Make or n8n catch hook, or your CRM's endpoint). Leave Webhook secret empty to generate one. Use Send test webhook to check the connection. The last 20 deliveries are listed with their HTTP status.

Ghostline Leads settings: notifications, webhook URL and secret, delivery log

Each new lead is POSTed as JSON:

{
  "event": "lead.created",
  "id": 123,
  "site": "https://example.com",
  "created_at": "2026-12-01T10:00:00Z",
  "lead": { "name": "", "email": "", "phone": "", "stage": "", "genre": "", "timeline": "", "message": "" },
  "consent": { "given": true, "text": "…", "ip": "", "user_agent": "", "page_url": "", "referrer": "", "utm": {} }
}

Headers: X-Ghostline-Event, X-Ghostline-Delivery (unique ID) and X-Ghostline-Signature: sha256=<HMAC-SHA256 of the raw body using your secret>. If a delivery fails, it is retried 3 times: after 1, 5 and 15 minutes. Retries rely on WP-Cron, so make sure it runs (a real cron job is recommended on low-traffic sites).

Verifying the signature

// PHP
$expected = 'sha256=' . hash_hmac( 'sha256', file_get_contents( 'php://input' ), $secret );
$valid    = hash_equals( $expected, $_SERVER['HTTP_X_GHOSTLINE_SIGNATURE'] ?? '' );

// Node.js
const expected = 'sha256=' + crypto.createHmac( 'sha256', secret ).update( rawBody ).digest( 'hex' );
const valid = crypto.timingSafeEqual( Buffer.from( expected ), Buffer.from( req.headers[ 'x-ghostline-signature' ] || '' ) );

12. Privacy & compliance

  • Legal pages: Privacy Policy, Terms of Service and Refund Policy are templates. Replace [LEGAL COMPANY NAME], [REGISTERED ADDRESS], [STATE] and [COUNTY, STATE]. Have a qualified attorney review them, then delete the "Template for review" notice.
  • Personal data requests: leads are included in Tools → Export Personal Data and Tools → Erase Personal Data, matched by email address.
  • Policy text: suggested privacy-policy text for the Lead Form is added to Settings → Privacy → Policy Guide.
  • Honest claims: the demo content never claims an affiliation with Amazon or other retailers and never promises sales. The footer says you are an independent company and that sales are not guaranteed. We recommend you keep both.
  • No tracking: the theme and plugin add no analytics or tracking code.

13. WP-CLI

wp ghostline import classic                 # or modern, manuscript
wp ghostline import modern --reset          # remove the previous import first
wp ghostline import classic --no-media      # link images instead of copying them
wp ghostline import classic --no-replace    # keep your front page, menu, header and footer
wp ghostline import classic --permalinks    # switch plain permalinks to /%postname%/
wp ghostline reset --yes                    # delete everything a Ghostline import created
wp ghostline license status                 # show license status
wp ghostline license activate <key>         # activate a key on this website
wp ghostline license check                  # refresh the status from the license server
wp ghostline license deactivate             # free this website's activation

14. Updating

While your license is active, new versions of the theme and Ghostline Toolkit appear under Dashboard → Updates like any other update. Click Update.

To update by hand instead:

  1. Download the latest version from your account at ghostlinetheme.com/account.
  2. Upload ghostline.zip under Appearance → Themes → Add New → Upload Theme and choose Replace current with uploaded. Do the same for ghostline-toolkit.zip under Plugins.

Your pages, leads, settings and any changes you made in the Site Editor (global styles, headers, footers and templates) are stored in the database and stay as they are after an update.

To change theme files, use a child theme; files you edit directly in the theme folder are overwritten on update.

15. FAQ & troubleshooting

The import stopped partway

Click Import again. It continues and updates what already exists. If it keeps failing, try with "Import images" off, or use WP-CLI.

The form says "This form has expired"

The page was older than its token allows: more than a day for logged-in users, or more than 30 days for visitors on a cached page. Reload the page, and make sure your cache expires within 30 days and never serves logged-in pages.

Leads arrive but the webhook shows errors

Check the delivery log for the HTTP status. 401/403 usually means the receiver rejected the signature, or needs an API key in the URL. 0 means the URL could not be reached.

"This license is already active on the maximum number of websites"

Deactivate it on a website you no longer use (in that site's Ghostline Setup, or from your account), or upgrade your plan and pay only the difference.

"Could not reach the Ghostline license server"

Your host is blocking outgoing requests to ghostlinetheme.com. Ask them to allow HTTPS requests to ghostlinetheme.com, then click Activate again.

I want my own font or colors

Use Appearance → Editor → Styles. Upload fonts through the Font Library, and they will be stored on your server.

Where can I get help?

See ghostlinetheme.com/docs or contact ghostlinetheme.com/support.

16. Credits & licenses

  • Split license (see licensing/LICENSE.txt): PHP files are licensed under the GNU GPL v2 or later. All other files (CSS, JavaScript, JSON, templates, demo content, images and documentation) are proprietary and licensed for the number of websites in your plan. Please don't share or redistribute them.
  • Fonts, self-hosted and all licensed under the SIL Open Font License 1.1: Fraunces, Inter, Figtree, Playfair Display, DM Serif Display, DM Sans, IBM Plex Mono and Caveat. License texts are in assets/fonts/*/OFL.txt and licensing/.
  • Book covers, illustrations, icons, logos and post images are original artwork made for Ghostline (proprietary). They contain no photographs of real people.
  • All people, books, reviews and figures in the demos are fictional and labeled "Sample".

Changelog

1.0.0: Initial release.