Check out the Latest Articles:
How to change a SilverStripe theme?

1. Upload the theme to themes directory.

2. Open the mysite/_config.php file with your text editor. 

3. Find the line: 

SSViewer::set_theme(’blackcandy’);

4. Replace “blackcandy” with your new theme name:

SSViewer::set_theme(’newthemename’);

5. Don’t forget to reupload mysite/_config.php on your web server



  1. Steve Holdoway on Saturday 11, 2009

    Thied to change themes. In order to ensure nothing I’m changing is at fault, I made a copy of the blackcandy theme, and called it GreenGecko. Updated mysite/_config.php and the home page now contains…

    [Warning] None of these templates can be found: Page.ss, ContentController.ss
    GET /

    Line 175 in /www/silverstripe.greengecko.co.nz/sapphire/core/SSViewer.php

    Source

    166 $this->chosenTemplates['main'] = $this->chosenTemplates[$templateFolder];
    167 unset($this->chosenTemplates[$templateFolder]);
    168 }
    169 }
    170
    171 if(isset($_GET['debug_request'])) Debug::message(”Final template selections made: ” . var_export($this->chosenTemplates, true));
    172
    173 }
    174
    175 if(!$this->chosenTemplates) user_error(”None of these templates can be found: “. implode(”.ss, “, $templateList) . “.ss”, E_USER_WARNING);
    176
    177 parent::__construct();
    178 }
    179
    180 /**
    181 * Returns true if at least one of the listed templates exists

    Any ideas????

  2. Steve Holdoway on Saturday 11, 2009

    As always, find the answer almost immediately.

    ?flush=1 sorts this out!