How to override form template


#1

I want to override html markup of modular forms (make it bootstrap style), what files and where i should take a look?


#2

@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


#3

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.