Anatomy of a Theme

This page describes what a TubePress theme is and where TubePress expects to find themes.
This article is part of a series on TubePress themes.

This page describes what a TubePress theme is and where TubePress expects to find themes.

Definition

A TubePress theme is a directory on your web server's filesystem that contains:

  • Exactly one manifest, which is a file named theme.json at the theme directory's root.
     
  • Zero or more HTML templates inside the templates directory at the theme directory's root.
     
  • Zero or more CSS stylesheets and/or JavaScript scripts, each referenced by the resources property of the manifest.
     
  • Any other supporting web resources (images, fonts, etc) required by your CSS, JavaScript, or templates. You may store such resources wherever you like inside your theme directory.
     

Location

During execution, TubePress will expect to find the active theme in one of two possible locations on your web server's filesystem:

  1. The themes subdirectory of your TubePress Content Directory.

    This is the directory where you should store all themes that are not shipped with TubePress. The directory is upgrade-safe, meaning that its contents will be preserved when you upgrade TubePress. This is where you should save your custom themes.


     
  2. Inside the TubePress codebase at <tubepress-install-directory>/web/themes

    This directory holds the themes that are shipped with TubePress. While you can modify the themes in this directory, any changes will be wiped out when you upgrade TubePress. You can refer to this directory for examples of properly structured and functioning themes.



Last Updated Feb 17, 2016 04:18PM PST
c65861bf7a72e1a8878bdf73cabbbdbf@tubepress.desk-mail.com
http://assets1.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete