Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Remove elements from base.html.twig

Started by Muut Archive 11 years ago · 2 replies · 586 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 Muut Archive, 10 years ago
1 674 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago