I want to override html markup of modular forms (make it bootstrap style), what files and where i should take a look?
General
@heihachi88
juste make folder in your theme template folder like forms/ and inside form.html.twig and in you r modular twig call {% include "forms/form.html.twig" %}
You can find all explanation here
I mean how can i override form fields, i already did what you mentioned.
Here's the form fields: https://github.com/getgrav/grav-plugin-form/tree/develop/templates/forms/fields
Simple copying it's templates to my theme doesn't work, what's the correct way to do that? In my case i want to override html of select and text fields.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 1 | 268 | 3 weeks ago | ||
| 0 | 196 | 3 weeks ago | ||
| 2 | 331 | 3 weeks ago | ||
| 1 | 253 | 3 weeks ago | ||
| 0 | 223 | 3 weeks ago |