How to use snippets in Ghost
Save any part of a post as a snippet, from a line of text to a styled HTML card, and add it to any other post in a few keystrokes.
EditorCelebrating our new site: 30% off everything with code , until Dec 1.
Step-by-step guides that each get one thing done in Ghost: a feature, a template, a setting, with the code you need.
Save any part of a post as a snippet, from a line of text to a styled HTML card, and add it to any other post in a few keystrokes.
EditorGroup your Ghost menu items under one parent, so readers open a short dropdown instead of scanning a long row of links.
NavigationShow your Ghost theme's buttons, labels and dates in your readers' language, with the theme's language files and one setting.
ThemesUpload a new theme to your Ghost site, check it, and make it live with your menu and design settings in place.
ThemesChange the text, layout and style of the sign-up box Ghost shows on members-only and paid posts, by overriding one partial in your theme.
MembersTemplatesTurn a page you write in the Ghost editor into your homepage, with one change to routes.yaml and no theme code, and move your posts to /blog/.
TemplatesRoutingUse your own font files on your Ghost site: add them to the theme, load them with @font-face and apply them with a few lines of CSS.
DesignOpen Ghost's Portal sign-up popup once a reader has scrolled a quarter of the page, only for visitors who aren't members, and not on every page view.
MembersMove your self-hosted Ghost site to the Node.js version Ghost requires, reinstall its dependencies, and fix the errors that can follow.
HostingAdd a contact page with a working form to your Ghost site, without code.
TemplatesMove your self-hosted Ghost site to a new domain with Ghost-CLI, with HTTPS, and redirect the old domain to the new one.
HostingRoutingShow three posts that share a tag with the current one at the end of every post, with the get helper and your theme's post card.
NavigationTemplatesServe a static JSON, XML or plain-text file at its own URL on your Ghost site, with one route in routes.yaml and one template in your theme.
RoutingShow the opening of a members-only or paid post to everyone, then ask them to sign up or upgrade to read the rest, with a soft fade where the preview ends.
EditorMembersGive a Ghost page its own layout, such as an About or Contact page, with a page-slug template, a custom template or a route in routes.yaml.
TemplatesGive site owners colors, fonts, images and toggles they can change in Ghost Admin, defined once in your theme's package.json.
ThemesDesignKeep your logo readable when your Ghost site switches to dark mode: recolor it with CSS, style an SVG logo, or upload a second logo with a theme setting.
DesignOverride Ghost's navigation template in your theme to change the menu's markup, style the secondary menu differently, or add an icon to each item.
NavigationLabel members as they sign up, from a fixed list of topics, from a post's tags or authors, or from the link that brought them, then filter and email each segment.
MembersBuild your own member sign-up form, with a name field and success and error messages, and place it in your Ghost theme or inside any post.
MembersNewslettersShow readers where a post sits on your site, Home / Tag / Post, with a small partial in your Ghost theme and a few lines of CSS.
NavigationUpdate one of our Ghost themes to its latest version without losing your changes or your design settings.
ThemesShow visitors, free members and paid members their own sections of your Ghost theme, from the header buttons to account and membership pages.
MembersNumber your posts or newsletter issues in an archive with a CSS counter, counting up or down, without putting the number in every title.
NewslettersHelpersFrom a solo newsletter to a busy newsroom, there is a theme that fits. No code needed.