Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Using different themes for every page in a site

Started by Muut Archive 11 years ago · 4 replies · 358 views
11 years ago

hi, i want to use different theme for pages. For example i want to use antimatter theme for main page. parallelism theme for galllery page, learn2 theme for lessons page and so on. how can i do it? is it possible active all themes under user/themes with doing the settings in system.yaml file under user/config. in system.yaml file there is defining:
home:
alias: ‘/home’
pages:
theme: antimatter
can i define system.yaml file like belove for do this?
home:
alias: ‘/home’
pages:
theme: antimatter
galley:
alias: ‘/gelley’
pages:
theme: parallelism
lessons:
alias: ‘/lessons’
pages:
theme: learn2

11 years ago

This is not currently possible. Grav only supports one theme per site.

11 years ago

Seems like you either need to Frankenstein a new theme using parts of those others, or have multiple installs of Grav, each running its own theme. The first option is what I recommend.

11 years ago

Yah I agree with Ryan. I would not be mixing many themes. I would create one theme that had different layouts in a variety of theme twig templates, then just assign each template to each page. This is totally possible with Grav.

11 years ago

some body has given information about it in muut.com/…/do-i-need-to-wait-on-multi. but i could not succeed yet.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2935 9 years ago
Archive · by Muut Archive, 9 years ago
3 1110 9 years ago