Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to 'activate' a subtheme


Go to End


2 Posts   2415 Views

Avatar
_Matt

Community Member, 29 Posts

23 February 2013 at 10:49pm

I'm struggling to get a subtheme working and wondered if someone could show me what I'm doing wrong? I've followed the instructions here (http://doc.silverstripe.org/framework/en/topics/theme-development) and here (http://www.silverstriperesources.com/articles/customising-a-theme-using-sub-themes/), but my subtheme is just not being recognised.

My understanding from these articles is that you simply need to create a new theme folder with the same name as your 'master' theme, and suffix it with something like '_page' (then do your overrides in this folder). The articles don't say to do anything else, such as edit _config.php, or select the subtheme in the Settings admin section (both of which I've tried). However, when I do this what I'm expecting to see just doesn't happen.

I'll keep experimenting, but if anyone has any suggestions that would be great :)

Avatar
_Matt

Community Member, 29 Posts

24 February 2013 at 1:25am

Ok, so a quick update.

After a bit more experimenting I've established that you can subtheme a module (i.e. myTheme_blog) but you can't subtheme a page type (i.e. myTheme_page) even though this article suggests you can: http://www.silverstriperesources.com/articles/customising-a-theme-using-sub-themes/

Does this mean that SS 3 no longer supports sub-theming of page types?