Skip to main content

Theme configuration

The configuration your theme should be specified in the file Resources/config/theme.yml. The configuration of the theme specifies values such as its name, author, etc. The settings defined in the configuration file determine what controls a content author has access to when creating a site with this theme.

note

If your theme will be available to Galaxies sites, add a 'theme-demo' route to your theme bundle. This route is used by the galaxy designer to provide a preview of your theme.

Configuration options

OptionDescriptionRequired?
nameThe name of the themeyes
main-siteWhether the theme is for the main siteno
authorThe developer or organisation that created the themeno
descriptionA textual description of the theme. Note: this isn't shown within the Control Center interfaceno
screenshotFile path of the preview of the theme bundleyes
settingsCustomisable settings of the theme, that define how an author can change the display of the site.no
creditsOther deverlopers or organisations that have produced assets used within the themeno
machine-nameA machine name for the theme. It should start with a letter, and can contain alphanumeric characters and hyphensyes
bundle-class-namePSR namespace of the bundle class of the themeyes
tagsA comma separated list of tags, that are used to classify the theme within the theme selection windowno

Example theme.yml file

name: Dopetrope
author: Jadu Ltd
description: Adapted from Dopetrope by HTML5 UP.
screenshot: images/preview.png
credits:
html5up.net | @ajlkn
machine-name: jadu-dopetrope
bundle-class-name: Photon\Themes\DopetropeTheme\DopetropeThemeBundle
tags: html5, responsive