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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Create a new template for antimatter

Started by Muut Archive 12 years ago · 3 replies · 259 views
12 years ago

I've tried to extend the antimatter theme and create a new template. I created a template file and the site content with <templatename>.md. However I could not manage to get any content although I simply copied the standard template. Did I miss something? Do I need to create an additional css file?

12 years ago

All you should need to do is copy the template file from antimatter/templates/default.html.twig into yourtheme/templates/yourtemplate.html.twig and then ensure you use yourtemplate.md as the filename for your page content.

If that is not working for you, can you zip up what you have in your theme, and share it on dropbox or something so I can take a look?

12 years ago

Ok, I obviously made a mistake last time, although I have no idea what it was. After copying the template again as you said it worked. Thanks for your quick reply :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1282 9 years ago
Archive · by Muut Archive, 9 years ago
2 889 9 years ago
Archive · by Muut Archive, 9 years ago
2 4019 9 years ago
Archive · by Muut Archive, 9 years ago
1 2894 9 years ago
Archive · by Muut Archive, 9 years ago
3 1078 9 years ago