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 →

Overwriting Plugin-Templates?

Started by Muut Archive 10 years ago · 3 replies · 1024 views
10 years ago

Hello there,

is there some way to overwrite the plugin templates ( in this case "CookieNotice") via theme?

Best regards,
Michael

10 years ago

Oh, I just saw it is the JS-File i need to overwrite =/. Sorry.
Is there any possibility to do this?

10 years ago

Twig files can be overwritten by putting them in your theme. Other plugin assets, no. You need to fork the plugin.

10 years ago

I have another solution in mind. I analysed the plugin. The problem lies within a js file. So I looked up your API-doc and saw that the "assets"-object can reset JS-Files. Am I able to exchange the JS-File with my own in some Event within my theme?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago