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.
Writing in Ghost: editor cards, snippets, post settings, previews and code injection.
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.
EditorCards are the building blocks of the Ghost editor: images, galleries, buttons, calls to action, embeds and more. What each card does, and how to use them without code.
EditorCode injection adds your own styles and scripts to a Ghost site, on every page or on one post, without editing the theme. Where it goes, how it works and what to use it for.
EditorSEOEvery field in Ghost's post settings, from the URL and access level to metadata and social cards: what each one does, and how to fill it in so your posts read well and get found.
EditorGhost opens every link in the same tab. A short script in the site footer code injection adds target="_blank" to links to other sites; for a single link, write it in an HTML card.
EditorShow 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 the post an internal tag such as #hide, then filter that tag out of the home collection in routes.yaml. The post stays published and reachable at its URL.
RoutingEditorFrom a solo newsletter to a busy newsroom, there is a theme that fits. No code needed.