Introduction
The following documentation serves as your guide to the new theme. Since this is Ghost theme documentation, it is assumed that you have a basic knowledge of the Ghost.
If you’re new to Ghost, it’s recommended to explore the guides in the official Ghost Help Center. Checking these resources will provide you with all the available information.
Uploading a theme
This is where the magic happens! You are able to upload, activate and delete a theme in the Ghost Admin of your publication.
Step-by-Step
- To upload a theme, go to the 'Theme' settings in the Ghost Admin and click 'Change theme' button.
- Then click the 'Upload theme' button in the upper right corner.
- Once uploaded, click 'Activate' to activate the theme on your site.
Dark version
The dark version introduces a fresh and distinctive appearance for your website, bringing a modern and stylish aesthetic that enhances the visual experience for your visitors.
Step-by-Step
- Go to the 'Design & branding' settings in the Ghost Admin.
- On the right you’ll see the tab 'Theme' – expand this settings list and go to the 'Color scheme' position.
- Use the dropdown menu to select your option.
- Finally, click 'Save' to activate.
Tip: Dark version depending on operating system preferences
Modern operating systems (Windows, macOS, iOS, etc.) allow users to choose their preference for light or dark system themes. The below feature is used to detect if the user has requested the system to use a light or dark color theme.
- To activate an auto dark version based on user operating system preferences, select the 'Auto' option.
- Click 'Save' to activate.
Search function
By default, the theme uses a native search option. You can also use the search function specially designed for this theme — to do this, you must set the Content API key.
Step 1: Generating Content API key
- To generate 'Content API key', go to the 'Integrations' settings in the Ghost Admin.
- Click 'Add custom integration', then give the new integration a name, like 'Search', and click the 'Add' button.
- Copy your 'Content API key' and click 'Save & close'.
Step 2: Activate the search function
- Go to the 'Design & branding' settings in the Ghost Admin.
- On the right you’ll see the tab 'Site-wide' – expand this settings list and go to the 'Content API key for search' position.
- Paste your 'Content API key'.
- Finally, click 'Save' to activate.
Pinned section
Select which posts and pages you want to featured in your publication.
Step-by-Step
- Open the post you would like to add to the pinned section.
- Then, go to the 'Post/Page settings' panel using the icon in the top right of the screen.
- At the bottom of the panel, you'll find a switch labeled 'Feature this post/page.'
- Click the switch and close the panel.
The 'Announcements' section is for featured pages and the 'Don't miss it' section for featured posts.
Tip: How to add your own color to 'Announcements' section?
- To add your own color, go the 'Design & branding' settings in the Ghost Admin.
- On the left you’ll see the option 'Homepage' – expand this settings list and go to the 'Color for announcements' position.
- Use the palette to select a color.
- Finally, click 'Save' to activate.
Tip: How to remove featured posts from the main collection? (For advanced users)
- Go to the 'Labs' settings in the Ghost Admin, click on 'Beta features' tab and you will find the 'Routes' section.
- Upload the
routes.yaml
file with these settings:
Authors page
To present all authors from your publication in an elegant way, you can add a custom authors page.
Step-by-Step
- Create a new page, add a page title, and open the 'Page settings' panel using the icon in the top right of the screen.
- At the bottom of the panel you’ll see a dropdown menu titled 'Template'.
- Use the dropdown menu to select the 'Authors' template, close the panel.
- Finally, click 'Publish'.
Tags page
To present all tags from your publication in an elegant way, you can add a custom tags page.
Step-by-Step
- Create a new page, add a page title, and open the 'Page settings' panel using the icon in the top right of the screen.
- At the bottom of the panel you’ll see a dropdown menu titled 'Template'.
- Use the dropdown menu to select the 'Tags' template, close the panel.
- Finally, click 'Publish'.
Contact page
If you wish to have a direct way in which your readers can contact you, you can add a contact page based on Formspree or Getform.
Step 1: Add your Formspree or Getform endpoint
- Go to the 'Design & branding' settings in the Ghost Admin.
- On the right you’ll see the tab 'Site-wide' – expand this settings list and go to the 'Contact form endpoint' position.
- Paste your Formspree or Getform endpoint, e.g.
https://formspree.io/f/xhyplkej
- Finally, click 'Save' to activate.
Step 2: Add a contact page
- Create a new page, add a page title, and open the 'Page settings' panel using the icon in the top right of the screen.
- At the bottom of the panel you’ll see a dropdown menu titled 'Template'.
- Use the dropdown menu to select the 'Contact' template, close the panel.
- Finally, click 'Publish'.
Logo
A publication logo is the primary logo for your brand and is displayed across your theme.
Step-by-Step
- To upload a logo, go to the 'Design & branding' settings in the Ghost Admin.
- On the right you’ll see the tab 'Brand' – expand this settings list and go to the 'Publication logo' position.
- Click 'Upload logo' to upload your logo.
- Finally, click 'Save' to activate.
Tip: How to change logo size?
- To change logo size go to the 'Code injection' settings in the Ghost Admin and paste this code to the 'Site header':
- Adjust the current
<value>
to match the expected value, such as30px
- Finally, click 'Save' to activate.
Tip: Uploading an additional logo for dark color scheme
- To upload an additional logo, go to the 'Design & branding' settings in the Ghost Admin.
- On the right, you’ll see the 'Site-wide' tab – expand this settings list and go to the 'Color scheme' position – select the option related to dark color scheme to display the option to upload an additional logo below.
- Click 'Upload Image' to upload your logo.
- Finally, click 'Save' to activate.
Accent color
Primary color used in your publication.
Step-by-Step
- To change the accent color in your publication, go to the 'Design & branding' settings in the Ghost Admin.
- On the right you’ll see the tab 'Brand' – expand this settings list and go to the 'Accent color' position.
- Choose your color.
- Finally, click 'Save' to activate.
Fonts
You can change fonts using the 'Typography' setting in the 'Design & branding' section.
Using this option might not always give the best results because fonts are designed for different purposes and can vary in size. The theme doesn’t affect the list of available fonts or adjust them, so it’s a good idea to experiment and find what works best for your needs.
Step-by-Step
- Go to the 'Design & branding' settings in the Ghost Admin.
- On the right, you’ll see the 'Brand' tab and find the 'Typography' section.
- Use the dropdown menu to select your option.
- Finally, click 'Save' to activate.
Colors of post-cards
You can easily customize the color of post-cards. Choose a color from the palette or add your own.
Step-by-Step
- To add the color, just add an adequate internal tag in 'Post settings' panel to the published post.
- For example, add an internal tag
#post-card-purple
(tags which are prefixed by a#
character, are internal tags within Ghost). - Click 'Update', to activate.
- The tag slug should be
hash-post-card-colorname
, for examplehash-post-card-purple
Available colors
White
#post-card-white
Cream
#post-card-cream
Aqua
#post-card-aqua
Amber
#post-card-amber
Apricot
#post-card-apricot
Peach
#post-card-peach
Iris
#post-card-iris
Lavender
#post-card-lavender
Purple
#post-card-purple
Violet
#post-card-violet
Amethyst
#post-card-amethyst
Sky
#post-card-sky
Blue
#post-card-blue
Lapis
#post-card-lapis
Cobalt
#post-card-cobalt
Azure
#post-card-azure
Turquoise
#post-card-turquoise
Mint
#post-card-mint
Seafoam
#post-card-seafoam
Green
#post-card-green
Palegreen
#post-card-palegreen
Celadon
#post-card-celadon
Lime
#post-card-lime
Apple
#post-card-apple
Coral
#post-card-coral
Tomato
#post-card-tomato
Red
#post-card-red
Crimson
#post-card-crimson
Rosewood
#post-card-rosewood
Cerise
#post-card-cerise
Raspberry
#post-card-raspberry
Olive
#post-card-olive
Gold
#post-card-gold
Lemon
#post-card-lemon
Yellow
#post-card-yellow
Goldenrod
#post-card-goldenrod
Orange
#post-card-orange
Tip: How to add your own color?
- To add your own color, go the 'Code injection' settings in the Ghost Admin and paste this code to the 'Site header':
<style>
.tag-hash-post-card-custom-yourcolor .global-color::after {
background-color: #fff
}
</style>
- Change the
-yourcolor
name to your own color name. - Change the value of the
#fff
parameter to your own color. - Click 'Save'.
- Go to the 'Post settings' panel and add an internal tag
#post-card-custom-yourcolor
to the published post. - Click 'Update', to activate.
- The tag slug should be
hash-post-card-custom-yourcolor
Tip: How to add one color for all post-cards?
- To add one color for all post-cards, go the 'Code injection' settings in the Ghost Admin and paste this code to the 'Site header':
<style>
:root body {
--bg-color-all: #fff
}
</style>
- Change the
-yourcolor
name to your own color name. - Change the value of the
#fff
parameter to your own color. - Click 'Save'.
- Go to the 'Post settings' panel and add an internal tag
#post-card-custom-yourcolor
to the published post. - Click 'Update', to activate.
- The tag slug should be
hash-post-card-one-color
Colors of post background
You can easily add color to the post background.
Step-by-Step
- To add the color to the post background, just add an adequate internal tag in 'Post settings' panel to the published post.
- For example, add an internal tag
#post-bg-ruby
(tags which are prefixed by a#
character, are internal tags within Ghost). - Click 'Update', to activate.
- The tag slug should be
hash-post-bg-colorname
, for examplehash-post-bg-ruby
Available light colors
Light colors means that the texts on the site will be black.
Pearl
#post-bg-pearl
Parchment
#post-bg-parchment
Celeste
#post-bg-celeste
Arctic
#post-bg-arctic
Lilac
#post-bg-lilac
Pink
#post-bg-pink
Sand
#post-bg-sand
Canary
#post-bg-canary
Avocado
#post-bg-avocado
Jade
#post-bg-jade
Available dark colors
Dark colors means that the texts on the site will be white.
Rose
#post-bg-rose
Ruby
#post-bg-ruby
Burgundy
#post-bg-burgundy
Magenta
#post-bg-magenta
Eggplant
#post-bg-eggplant
Neon
#post-bg-neon
Ultramarine
#post-bg-ultramarine
Sapphire
#post-bg-sapphire
Grass
#post-bg-grass
Emerald
#post-bg-emerald
Colors of background
You can easily add color of background on your site. You can choose a color from the color palette or add your own.
Step-by-Step
- To add the color of background of your site, just add an adequate internal tag in 'Post settings' panel to the published post – this is a global setting that applies to all pages in your site.
- For example, add an internal tag
#site-ruby
(tags which are prefixed by a#
character, are internal tags within Ghost). - Click 'Update', to activate.
- The tag slug should be
hash-site-colorname
, for examplehash-site-ruby
Available light colors
Light colors means that the texts on the site will be black.
Pearl
#site-pearl
Parchment
#site-parchment
Celeste
#site-celeste
Arctic
#site-arctic
Lilac
#site-lilac
Pink
#site-pink
Sand
#site-sand
Canary
#site-canary
Avocado
#site-avocado
Jade
#site-jade
Available dark colors
Dark colors means that the texts on the site will be white.
Rose
#site-rose
Ruby
#site-ruby
Burgundy
#site-burgundy
Magenta
#site-magenta
Eggplant
#site-eggplant
Neon
#site-neon
Ultramarine
#site-ultramarine
Sapphire
#site-sapphire
Grass
#site-grass
Emerald
#site-emerald
Tip: How to add your own color?
- To add your own color, go the 'Code injection' settings in the Ghost Admin and paste this code to the 'Site header':
- Change the value of the
#333
parameter to your own color. - Click 'Save'.
- Go to the 'Post settings' panel and add an internal tag
#site-custom-light-color
or#site-custom-dark-color
to one of the published posts. - Click 'Update', to activate.
- The tag slug should be
hash-site-custom-light-color
orhash-site-custom-dark-color
Hide author
Decide whether you want to display the author in the feed and on the post page.
Step-by-Step
- To hide the author, go to the 'Design & branding' settings in the Ghost Admin.
- On the right you’ll see the tab 'Theme' – expand this settings list and go to the 'Show author' position.
- Use the toggle switch.
- Finally, click 'Save' to activate.
'Load more' button
When you have a large number of posts in a pagination pages, your visitors see a 'Load more' button in the form of a circle. We have added an easy way to change the 'circle' to a standard button with 'Load more' text.
Step-by-Step
- To activate a standard 'load more' button, go to the 'Design & branding' settings in the Ghost Admin.
- On the right you’ll see the tab 'Site-wide' – expand this settings list and go to the 'Standard load more button' position.
- Use the toggle switch.
- Finally, click 'Save' to activate.
Responsive tables
The responsive table will display a horizontal scroll bar if the screen is too small to display the full content. The following description applies to the table added using the markdown card.
By default, the table adapts to the window width. If you have a table that is too wide, you can add a container <div class="responsive-table">
element with around the table, and it will display a horizontal scroll bar when needed.
Step-by-Step
- To add a responsive table, use the 'Markdown card'.
- Add a container
<div class="responsive-table">
element with around the table (in markdown there always needs to be a blank line between anyHTML
andmarkdown
).
Tip: What it takes to generate a table?
To generate a table, you can use the tool Markdown Tables Generator.
Custom pages
The members feature allows you to turn any site into a membership business with member signup, paid subscriptions and email newsletters.
The members feature is enabled by default. However, you need to create the following pages to avoid the 404 error.
Step-by-Step
- Create an Account page.
- Create Signup & Signin pages.
Tip: What to do in case of an 400 error with message e.g. 'Missing template members/signin.hbs for route /signin/'
The error indicates that there was previously used aroutes.yaml
file with another theme that required it. To solve the problem, reset theroutes.yaml
file to its default settings.
Login panel
The login panel is a navigation component that shows 'Register for free / Sign in' button when a member is logged out.
Tip: Replacing 'Register for free' with 'Membership' (Requires theme editing)
- You can easily replace the 'Register for free' page with 'Membership', for this purpose open
../partials/members/login_panel.hbs
file in your code editor and find:
<a href="{{@site.url}}/signup/">{{t "Register for free"}}</a>
- Then, replace with:
<a href="{{@site.url}}/membership/">Membership</a>
- Save your
login_panel.hbs
file in../partials/members/
folder.
Account page
The account page shows your members the type of account they’re having and gives them some subscription specific data.
Step-by-Step
- Create a new page, add a page title, and open the 'Page settings' panel using the icon in the top right of the screen.
- Provide the appropriate 'Page URL' as
/account/
- At the bottom of the panel you’ll see a dropdown menu titled 'Template'.
- Use the dropdown menu to select the 'Account' template, close the panel.
- Finally, click 'Publish'.
Signup & Signin pages
The 'Signup' and 'Signin' pages are allowing your visitors to sign up to your site in order to access members only content.
Step-by-Step
- Create a new page, add a page title, and open the 'Page settings' panel using the icon in the top right of the screen.
- Provide the appropriate 'Page URL' as
/signin/
for the 'Signin' page and/signup/
for the 'Signup' page. - At the bottom of the panel, you’ll see a dropdown menu titled 'Template'.
- Use the dropdown menu to select the 'Signin' for the signin page and 'Signup' for the signup page.
- Finally, click 'Publish'.
Membership page
The 'Membership' page is helping your visitors to quickly visualize and compare the different pricing plans you offer.
Step-by-Step
- Create a new page, add a page title, and open the 'Page settings' panel using the icon in the top right of the screen.
- At the bottom of the panel you’ll see a dropdown menu titled 'Template'.
- Use the dropdown menu to select the 'Membership' template, close the panel.
- Finally, click 'Publish'.
Tip: How to add premium tier?
- Go to the 'Tiers' settings in the Ghost Admin.
- Click on the 'Connect with Stripe' and configure your Stripe account.
- If you have Stripe connected, click '+Add tier' – add your own tier name, description, monthly and yearly prices and list of benefits.
- Click 'Save & close'.
- Making tiers available to visitors – from the 'Portal settings', you can control which tiers appear on your site.
Tip: How to add description and list of benefits to free tier?
- Go to the 'Tiers' settings in the Ghost Admin.
- Click 'Free' position and add your tier description and list of benefits.
- Finally, click 'Save & close' to activate.
Subscribe page
The subscribe page is allowing your visitors to sign up to your site in order to access members only content and receive the premium newsletter.
Step-by-Step
- Create a new page, add a page title, and open the 'Page settings' panel using the icon in the top right of the screen.
- At the bottom of the panel you’ll see a dropdown menu titled 'Template'.
- Use the dropdown menu to select the 'Subscribe' template, close the panel.
- Finally, click 'Publish'.
Comments
The native comments feature in Ghost allows you to invite members to join the discussion and participate in a community directly on your website. Alternatively, you can opt for the Disqus option.
Ghost comments
- To enable native comments, go to the 'Access' settings in the Ghost Admin.
- Change the 'Commenting' level to 'All members' or 'Paid-members only'.
- Finally, click 'Save' to activate.
Disqus comments
- Go to the 'Design & branding' settings in the Ghost Admin.
- On the right you’ll see the tab 'Post' – expand this settings list and go to the 'Disqus shortname' position.
- Paste your 'Disqus shortname', e.g. copy only
your-site
fromyour-site.disqus.com
- Finally, click 'Save' to activate.
Editing a theme
To edit files, you will need to unzip the theme archive — at this point you will have access to the necessary files indicated in the theme documentation.
Step-by-Step
- To edit your theme files, download a copy of the theme. For this purpose go to the 'Design & branding' settings in the Ghost Admin and click 'Change theme' in the bottom right corner.
- Use the 'Installed' tab menu in the upper right corner to download your theme, then unzip the theme locally.
- Once the theme is unzipped, the files can be edited using an code editor – make the changes indicated in the theme documentation.
You can edit files using applications (code editor) such as Sublime Text, Visual Studio Code or Brackets. Using native text editors like TextEdit on macOS may add formatting may cause the theme to work incorrectly.
- When you’ve finished making changes to the theme code, re-zip the theme directory for uploading back to Ghost.
To create a zip archive on a macOS, right-click on the theme folder to view the context menu. Then, click the 'Compress' option. On Windows right-click on the theme folder, select 'Send to', and then select 'Compressed (zipped) folder'.
- To upload a theme, go to the 'Design & branding' settings in the Ghost Admin and click 'Change theme' in the bottom right corner.
- Then click the 'Upload theme' button in the upper right corner.
- Once uploaded, click 'Activate' to activate the theme on your site.
Updating a theme
Updates to the theme ensure compatibility with the latest Ghost version, performance improvements and minor bug fixes. So it is important that you use the latest available theme version.
If your theme features custom code, updating it with the latest versions will overwrite all your customizations.
Step-by-Step
- Download the latest version of the theme, then unzip the archive locally.
- Choose a theme version that is compatible with your Ghost version.
- To upload a theme, go to the 'Design & branding' settings in the Ghost Admin and click 'Change theme' in the bottom right corner.
- Then click the 'Upload theme' button in the upper right corner.
- Once uploaded, click 'Activate' to activate the theme on your site.
Tip: What if you’ve already edited the theme, and want to update it without losing your changes?
That’s a bit trickier to deal with but not impossible, as long as you can remember what the changes were, or more specifically which files you edited. Unfortunately in Ghost when updating a theme you have to re-enter your changes.
For more advanced users, it can be helpful to use a comparing files app like Sublime Merge – that way you can find your changes if you don’t remember them.
Tip: After uploading the theme my settings in Design section were reset, what should I do?
The best solution is to always use the same name e.g. theme-name.zip
– that way you will not have to enter your settings again after uploading a theme.
Ghost assigns the settings in the 'Design & branding' section to the name of the uploaded archive. If you uploadtheme-v1.zip
andtheme-v2.zip
– Ghost will recognize them as two different themes – so the settings will reset.
Theme translation
Translations are used both when you want to add a new language and when you want to edit current phrases used in the theme.
Editing current phrases used in the theme (Requires theme editing)
- You’ll need to open the theme’s
../locales/en.json
file in your code editor. - Change the sentences used in the theme following the pattern:
{
"Old translate": "New translate",
...
}
- After making your changes, save your file, compress the theme into a zip format, and upload it to Ghost.
Translation to another language (Requires theme editing)
- Inside the
../locales/
folder, add target language file for examplees.json
for Spanish andpl.json
for Polish (a valid language code must be used). - Based on the translation from the
en.json
file, add translations for your language in your code editor. For example, for Spanish, use in thees.json
file:
{
"Back": "Volver",
"Newer Posts": "Artículos Siguientes",
"Older Posts": "Artículos Anteriores",
...
}
- After making your changes, save your file, compress the theme into a zip format, and upload it to Ghost.
- Then, go to the 'Publication Language' settings in the Ghost Admin.
- Enter the correct language code into the 'Site language' field.
- Finally, click 'Save' to activate.
Posts per page
The number of posts provided will depend on the 'post per page' setting which you can configure in your package.json file.
Step-by-Step (Requires theme editing)
- You’ll need to open the theme’s
package.json
file in your code editor and find:
"config": {
...
"posts_per_page": <value>
...
}
- Change the current value to the expected value.
- Save your
package.json
file in root folder.
Social accounts
Link your social accounts to have them displayed in the footer of your publication.
Facebook and X
Tip: Adding other social accounts to the footer (Requires theme editing)
../partials/footer_icons.hbs
file in your code editor.{{!--
and--}}
for the chosen profile icon.#
for eachhref
value with your own profile links.footer_icons.hbs
file in../partials/
folder.