googleghost

Install a theme using the command line

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

Ghost themes live in the content/themes directory and are also available in Ghost Marketplace.

  • Download your theme and uncompress it in this folder alongside the Casper default theme. Then, configure the permissions appropriately. Execute the following commands, depending on your installation type:

    • Approach A (Bitnami installations using system packages):

        $ sudo chown -R ghost:bitnami /opt/bitnami/ghost/content/themes
      
    • Approach B (Self-contained Bitnami installations):

        $ sudo chown -R bitnami:daemon /opt/bitnami/apps/ghost/htdocs/content/themes
      

To switch to your newly added theme:

  • Restart Ghost.

      $ sudo /opt/bitnami/ctlscript.sh restart ghost
    
  • Log in to your application, and navigate to “Settings -> General”.

  • Select your theme name and click the “Save” button.

Install a theme using the Web interface

  • Download the theme in Ghost Marketplace.

  • Log into the application and navigate to “Settings -> General” section. Scroll down to the bottom of the page. Click the “Upload a theme” button.

    Ghost General Settings

  • Browse to the .zip file in your computer and drag and drop to upload it. Wait until the upload is complete.

    Upload a theme

  • You will see a confirmation message. Click the “Activate now” button if you want to activate the theme. Click the “Close” button to exit.

    Successful upload

  • The new theme is displayed in the “Themes” section. Select the theme in the list and click the action you want to perform.

    Activate a new theme

Last modification July 7, 2021