Royce Documentation

  • Ghost version: 5.x
  • Theme version: 3.1.0
  • Last updated:

First of all a huge thanks for purchasing this theme! If you have any questions that are not answered here, please feel free to contact us via email.

Theme Installation

To install Royce on your Ghost site, follow the steps:

  1. Log into the admin section of your Ghost site: yoursite.com/ghost.
  2. Go to Settings → Design and click on Change theme located at the bottom of the left hand column.
  3. Click on Upload theme.
  4. Drag-and-drop or click and locate the zip file for your theme.
  5. Once it is uploaded, click on either Activate to activate the theme immediately or Close if you want to activate it later on.

Getting Started

Uploading a Favicon

To add a favicon:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Brand section.
  3. Click Upload icon next to Publication icon.
  4. Save changes.


To add a logo:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Brand section.
  3. Click Upload logo next to Publication logo.
  4. Save changes.

Instead of publication logo you can display your profile image. To add a profile image:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Site-wide section.
  3. Upload the Sidebar avatar image.
  4. Fill the Sidebar avatar alt text field.
  5. Save changes.

If neither publication logo nor profile image was added, the theme shows the site title.


Uploading a Publication Cover

The publication cover image is displayed in the background of the error pages.

To add a publication cover:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Brand section.
  3. Click Upload logo next to Publication logo.
  4. Save changes.


Adding Navigation

The theme supports primary and secondary navigation. Primary navigation is displayed in the sidebar, while the secondary navigation is displayed in the site footer.

To set up primary and secondary navigation:

  1. Go to Settings → Navigation in your Ghost admin.
  2. Add your navigation items by entering a page name in the label field and a destination URL in the URL field.
  3. Once finished, click Save.


The social media links are displayed in the sidebar of the theme.

To add Facebook and Twitter links:

  1. Navigate to Settings → General in your Ghost admin.
  2. Click Expand next to Social accounts.
  3. Enter the URLs of your Facebook and Twitter profiles.
  4. Save changes.

All other social media links can be added manually in the social-links.hbs file located in the partials folder of the theme. For instance, if you want to add the link to your Instagram account use the following code:

<a href="https://www.instagram.com/" target="_blank" rel="noopener" aria-label="Instagram">{{> "icons/instagram"}}</a>

To see the available icons, please check the /partials/icons folder of the theme.


Editing Hero Section

The hero section is displayed on the home page.

To edit the hero section text:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Homepage section.
  3. Fill the Hero text field.
  4. Save changes.


You can feature up to three of your posts. The featured posts are displayed on the homepage below the hero section.

To mark a post as featured:

  1. Navigate to Posts in your Ghost admin.
  2. Create a new post or open an existing one.
  3. Click on the post settings icon in the top right corner of the Ghost editor.
  4. Check the Feature this post box located at the bottom of the posts settings panel.
  5. Save changes.

Featured posts


Creating Landing Page

If you have enabled Ghost’s new Beta Editor, it’s now possible to remove the title and feature image from a page. Then, using Header and other cards you can create a unique look for your pages without having to know how to code.

To hide the title and feature image from a page, open the Page Settings and turn off the Show title and feature image toggle.

Landing page


Members

Ghost members feature allows you to turn your site into a membership business with member signup, paid subscriptions and email newsletters.

If members feature is enabled on your site, the theme displays Subscribe and Sign in links in the sidebar and the Subscribe box above the footer. Both, sidebar links and subscribe box button, open the Ghost members portal.

If you wish, you can enable the labels on the posts indicating the post access level (Free or Paid). To do this:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Site-wide section.
  3. Select the option from the Post access labels dropdown.
  4. Save changes.


Enabling Disqus Comments

Royce comes with Disqus commenting built-in, you just need to have a Disqus account.

To enable Disqus commenting:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Post section.
  3. Turn on Enable Disqus and add your shortname in the Disqus shortname field.
  4. Save changes.


Syntax Highlighter

Royce comes with the Prism syntax highlighter to automatically highlight code blocks in your posts.

To make the syntax highlighter work:

  1. Type the triple backticks ``` in the post editor and click enter.
  2. Add the language identifier in the Language field.
  3. Add your code.
  4. Save changes.

syntax highlighter

By default, the supported languages include: markup, CSS, C-like, JavaScript. If you need to support more languages, visit http://prismjs.com/download.html, select the languages you need and download the JS file. Replace the Prism code in the assets/js/post.js file of the theme with the contents of the file you downloaded.


You can edit the copyright information via the .json translation file located in the /locales folder. Or you can edit it directly in the/partials/footer.hbs file using a code editor.


Adding Google Analytics

To add Google Analytics to your site, please follow the Google Analytics Integration guide by Ghost.


Theme Customization

Changing Color Scheme

Royce is available in light and dark color schemes. To change the theme color scheme:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Site-wide section.
  3. Select the option from the Color scheme dropdown.
  4. Save changes.

Settings panel preview for changing Royce color scheme

Changing Accent Color

To change the theme accent color:

  1. Navigate to Settings → Design in your Ghost admin.
  2. Expand the Brand section.
  3. Choose your color.
  4. Save changes.

Settings panel preview for changing Raoyce accent color


Changing Posts Per Page Number

You can set the number of post displayed per page in the package.json file of the theme. The default post number is set to 8:

"config": {
    "posts_per_page": 8
}

Theme Translation

The Royce theme is ready for translations. You can find the default file in the locales folder. Copy locales/en.json to locales/[language_code].json where “language_code” must be replaced with a valid code. You can edit the renamed translation file with any plain text editor.

Even if your site is in English, you can customize any theme texts by simply editing the default English file ( locales/en.json ), without modifying the theme templates.

You can find more information on how to translate the theme in Ghost documentation.


Adjusting Style

To customize the theme style, use the Code Injection tool and place your CSS rules in the Site Header field.

For instance, to adjust the site title size:

  1. Navigate to Settings → Code Injection in your Ghost admin.
  2. Add the necessary CSS rules to the Site headerfield.
  3. Save changes.

Settings panel preview for making Royce style adjustments


Credits


Support

The documentation included provides all the information needed to get the theme installed and customized. However, if you have any questions you can email us, and we will be happy to help you.

If you have any bug reports, or feature requests, please let us know!