Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Remove elements from base.html.twig

Started by Muut Archive 11 years ago · 2 replies · 489 views
11 years ago

Is there a way to replace/remove blocks from base.html.twig when using modular pages? For example, remove navigation partial from base.html.twig and include it inside specific modular page. I would like to make different homepage with couple of modular parts and put navigation in different position, than in other pages.

11 years ago

Ok, can I override it inside modular part, not just in modular.html.twig? For example if I have _jumbotron starting the modular home page, I would like to put it inside jumbotron.html.twig.

!Update -> it actually works! Great!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2288 9 years ago
Archive · by Muut Archive, 9 years ago
2 1501 9 years ago
Archive · by Muut Archive, 9 years ago
2 4753 9 years ago
Archive · by Muut Archive, 9 years ago
1 3570 9 years ago
Archive · by Muut Archive, 9 years ago
3 1627 9 years ago