Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

PHP code in my sidebar

Started by Muut Archive 10 years ago · 1 replies · 589 views
10 years ago

Hello, I have Grav running using the antimatter theme. When you have a blog on the right side there is a sidebar. I changed the text, but I would like to include a small PHP script in there. How can I do this?

10 years ago

You can't put PHP script in to Twig . This is for security reasons. What are you trying to do with the PHP?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2567 9 years ago
Archive · by Muut Archive, 9 years ago
2 1690 9 years ago
Archive · by Muut Archive, 9 years ago
2 4982 9 years ago
Archive · by Muut Archive, 9 years ago
1 3808 9 years ago
Archive · by Muut Archive, 9 years ago
3 1800 9 years ago