惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Palo Alto Networks Blog
P
Proofpoint News Feed
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
罗磊的独立博客
J
Java Code Geeks
月光博客
月光博客
F
Full Disclosure
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
U
Unit 42
WordPress大学
WordPress大学
A
About on SuperTechFans
C
Cyber Attacks, Cyber Crime and Cyber Security
SecWiki News
SecWiki News
Security Latest
Security Latest
C
Check Point Blog
C
CERT Recently Published Vulnerability Notes
小众软件
小众软件
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog RSS Feed
V
Visual Studio Blog
博客园_首页
NISL@THU
NISL@THU
I
Intezer
Spread Privacy
Spread Privacy
AWS News Blog
AWS News Blog
The Register - Security
The Register - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Latest news
Latest news
Project Zero
Project Zero
博客园 - 叶小钗
C
Cybersecurity and Infrastructure Security Agency CISA
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy International News Feed
博客园 - 【当耐特】
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threat Research - Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
T
Tor Project blog
V
Vulnerabilities – Threatpost
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网

Example blog

Ghost routing explained with routes.yaml examples — routes, collections & taxonomies Ghost redirects explained with practical redirects.yaml examples How to Serve JSON or XML Data in Ghost How to Change Your Default Post Template in Ghost How to add Google Fonts to Ghost Themes How to Configure Ghost with Mailgun Ghost Theme Structure & Organization How to Make Custom Templates in Ghost Themes How to Install Ghost CMS via Ghost-CLI How to Add Syntax Highlighting to Ghost The best Ghost CMS hosting platforms Ghost 6.0 — Social Web and Native Ghost Analytics Ghost CMS Social web beta, email 2FA and more author social links How to keep custom design settings when updating your Ghost theme How to use the public preview card in Ghost How to add members-specific sections in Ghost How to customize the default content CTA in Ghost How to build a custom homepage in Ghost An overview of Ghost editor cards and and how they work Ghost CMS News: One-time payments & collecting sales tax How to customize the private site access template in Ghost How to add custom fonts in Ghost themes Ghost CMS News: Additional payment methods & internal linking How to use Code Injection in Ghost How to set meta data of your custom routes & collections in Ghost Ghost CMS News: TK reminders, ActivityPub and improvements How to format dates and use the date helper in Ghost Ghost CMS internationalization, custom fonts & spam protection Understanding and optimizing post and page settings in Ghost CMS Trigger the Ghost Portal popup based on page scroll progress How to Deploy Your Ghost Theme with GitHub Actions How to create a custom recommendations page for your Ghost CMS theme Ghost CMS News: New editor, refreshed settings & recommendations Ghost CMS News: Source - the new default theme and native image editing How to Add Different Logos for Dark & Light Themes in Ghost Upgrade to Node v18 for Ghost CMS & common errors Ghost Snippets: Adding Schema markup in Ghost How to add a scroll-based progress bar to your Ghost CMS site How to Create a Custom Navigation Template in Ghost How to Segment Subscribers with Member Labels in Ghost The best way to create a contact page in Ghost How to Use the Ghost Subscription Forms in Your Theme & Posts How to update your Ghost site URL when self-hosting Ghost CMS News: Signup cards and better landing pages How to Add Breadcrumbs to Your Ghost Theme How to integrate the Applause Button into your Ghost theme How to Hide a Post From the Home Page in Ghost CMS Ghost CMS block and contentFor helper overview & tips How to add Image Lightbox to Ghost Themes Ghost CMS News: Signup form embed, new editor and bulk actions. Biron Themes becomes Bright Themes 🎉 How to Audit & Test a Ghost Theme How to Create Related Posts Section in Ghost How to Use Ghost Filter Expressions Ghost CMS newsletter settings and post analytics How to Update Your Ghost Theme When We Release New Versions Ghost CMS News: Automatic list cleaning & email troubleshooting How to Create a Featured Post Slider in Ghost How to Add Reading Time to Ghost Blog Posts How to Create a Post Archive for Your Ghost Theme Ghost CMS Price Helper Overview & Tips Self-Hosted Ghost CMS with DigitalOcean Ghost CMS News: Member Growth Sources & Audience Feedback How to Open External Links in a New Tab in Ghost How to Integrate Google Analytics with Ghost Ghost CMS News: History Log & Newsletter Analytics How to Automatically Add Member Labels From Referral Traffic in Ghost? Ghost CMS News: Free trials & email notifications Ghost CMS Match Helper Usage & Tips Ghost CMS News: Native Comments Ghost CMS News: Ghost Explore & Premium Newsletter Previews Ghost Snippets: Custom Progress Cards & Steps Ghost CMS News: Native Search The Best Ghost CMS Search Plugins & Libraries Ghost Snippets: Custom Stylish Tables How to Add a Scroll Top & Progress Indicator Button in Ghost Ghost Snippets: Accordions How to Add Tag Dropdown to Your Ghost Theme Ghost 5.0 released 🎉 Ghost Snippets: Custom Subscribe Forms Ghost Snippets: Custom Alert Boxes How to Show Post or Newsletter Issue Number in Ghost How to Self-Host Google Fonts in Ghost CMS Ghost CMS News: Membership, Tiers & Activity Feed Custom Pages in Ghost CMS Themes Ghost CMS Search Using Fuse.js Ghost CMS News: Offers and Discounts & New Cards Ghost CMS News: Membership tiers, email CTA & filters Ghost CMS News: Grammarly Support & Feature Image Captions. Ghost CMS News: Improved Member Accounts & Personalized Newsletter. Ghost 4.0 Launched With Native Newsletters & Membership Ghost CMS News: Cancellation Feedback & Newsletter Stats. Ghost CMS News: Improved Member Dashboard & Sidebar Views. Ghost CMS News: Google Pay support, email newsletters & secondary navigation Ghost CMS News: Member Support, Portal & Content Snippets. Ghost CMS News: Referral Programs & Responsive Images. Ghost Themes as Progressive Web Apps Ghost 3.0 is here with brand new features Ghost 2.0 is here with new features How to Add Search to Ghost Using ghostHunter
Ghost Custom Theme Settings
Bright Themes · 2026-03-27 · via Example blog

Ghost custom theme settings were introduced in Ghost 4.20.0 and have become a standard way to expose safe, self-serve customization options in the Admin UI.

Note

The UI labels and grouping can vary slightly across Ghost versions, but the theme-side configuration format stays the same.

Custom settings overview

Ghost provides five types of custom theme settings:

  • select - renders a select input with several options that can be defined ( options and default is required)
  • boolean - renders a checkbox toggle (default is required and can be true or false)
  • color - renders a color picker (default is required and it has to be a valid hexadecimal string)
  • image - renders an image uploader (default is not allowed)
  • text - renders a text input (default is optional)

These have to be defined in the package.json file, more specifically under the config key, where you can also find the posts_per_page and image_sizes defined. You have to create a new key custom and define your custom property.

For example:

{
  "config": {
    "custom": {
      "hero_headline": {
        "type": "text",
        "group": "homepage"
      }
    }
  }
}

In the example above the "hero_headline" will be displayed in the admin area as an input field and the site owner can add any text. To use this new property in Handlebars templates you can reference it like this:

{{@custom.hero_headline}}

Caution

Important to note that the "type" must be defined and must be valid (one of the five settings types) Also the setting keys must be lowercase without any special character and in snake case

Theme settings can be grouped, there are 3 categories:

  • Site-wide - for settings that apply to all pages
  • Homepage - for settings that apply to the homepage
  • Post - for settings that apply to posts

Note

By default, all settings appear in Ghost Admin under the Site-wide category, unless you specify the group key with either post or homepage.

For checking the specific value of custom settings you can use the {{#match}} helper. Example, when a specific typography option is selected:

{{#match @custom.typography 'Inter'}}
  ...code for the Inter font...
{{/match}}

Additionally, you can add a custom description using the description property, and you can define the visibility of a setting. To control when settings are visible, include the visibility key on the dependent setting. This key specifies the conditions that must be met for the setting to be displayed.

Guideline and fallback

Most of the setting types require the "default" property, which is helpful in case the settings is not modified at all by the site owner. The one exception is the "text" type, where this is optional, but in such cases, there is a possibility to do it using handlebars. Expanding on the previous example:

<h1 class='hero__title'>
  {{#if @custom.hero_headline}}
    {{@custom.hero_headline}}
  {{else}}
    {{@site.title}}
  {{/if}}
</h1>

Important

The total number of settings is limited to 20.

Custom settings are intended for simple visual changes and not complex layout settings.

Official guideline for custom settings

Use cases & ideas

Let's see some of the possible use cases for custom theme settings in your Ghost theme:

  • secondary_color
    • provide an option for a secondary color for the theme
    • "type": "color"
  • default_color_scheme
    • site owner can set the default color scheme
    • "type": "select"
    • "options": ["System", "Light", "Dark"]
  • typography
    • provide different font family combinations
    • "type": "select"
  • sticky_header
    • option to make the header sticky
    • "type": "boolean"
  • post_feed_style
    • provide different style for the post feed
    • "type": "select"
    • "options": ["list", "grid"]
    • "group": "homepage"
  • open_external_links_in_new_tab
    • option to add script for opening external links in a new tab
    • "type": "boolean"

And there are much more general or even specific use cases where custom theme settings will be very useful.

In case you face issues like the theme settings reset during theme updates, you can use the GitHub action to deploy your theme, or check this guide on how to keep custom design settings.

Conclusions

Custom theme settings provide a way to make Ghost themes much easier to customize and change. Depending on what kind of settings your theme has, you can make specific changes without the need to touch any code.