Anatomy of a Theme
gpEasy Themes
Using Themes
Creating Themes
gpEasy Themes are unique in that they can contain multiple variations of a single style. Below is an overview of how to structure your theme files and folders.
Necessary Files
A theme consists of just three files and one folder:
- ../Your_Theme/template.php
- The template.php file contains the html of your theme and a few simple php function calls to include the appropriate content.
- ../Your_Theme/settings.php
- The settings.php file should contain at a minimum the $GP_STYLES settings used by gpEasy to enable True WYSIWYG
- ../Your_Theme/Color/style.css
- The css for your theme. You don't need to reference the style.css file in your html, it will be included automatically.
Optional Files
- ../Your_Theme/Addon.ini
- The Addon.ini file is only required if you want to upload your theme to gpEasy.com.
Color Variations
Your theme can contain multiple css variants by adding additional subfolders and style.css files. For example adding the /Your_Theme/Blue/style.css file could be used to add a blue styled variation of your theme.