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

Use Antimatter and Learn2 Theme on Same Site

Started by Muut Archive 11 years ago · 3 replies · 331 views
11 years ago

I would like to use both of these themes, I have copied both of the themes into my /user/themes folder as well as copied the sample pages for the Learn2 theme intoa new page folder. My site starts in the Anitmatter theme and want to switch to learn2 theme when any page from a specific parent folder is used. How do i accomplish this?

Screen Shot 2015-10-07 at 7

11 years ago

@rhukster sorry I guess I should have put this in the Themes channel

11 years ago

Hi Robert,

I just recently answered the same question in the gitter chat. However, for the sake of completeness and for others having the same question I will post it here again. Further your question has been asked in a while ago. You can find some informations in these posts http://getgrav.org/forum#!/general:what-is-best-way-to-handle and http://getgrav.org/forum#!/general:one-website-two-themes.

In your case maybe Themer will be the right tool for you. According to your folder structure you only have to place a documentation.md in your user/pages/05.documentation folder with the content

---yaml
title: Documentation

theme: learn2
template: docs

TXT

as the page header (as usually enclosed with `---`, which unfortunately is not possible here to post).
11 years ago

Themer did the trick for me. Exactly what I was looking for. Thanks.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1341 9 years ago
Archive · by Muut Archive, 9 years ago
2 928 9 years ago
Archive · by Muut Archive, 9 years ago
2 4057 9 years ago
Archive · by Muut Archive, 9 years ago
1 2942 9 years ago
Archive · by Muut Archive, 9 years ago
3 1115 9 years ago