5

How can we override single field from Views template files 'views-view-field.html.twig' from location themes/theme-name/templates/views/views-view-field.html.twig.

4

There is a detailed answer in this Q: Overriding views-view-field.html.twig for specific fields.

You can simply use views-view-field--fieldname.html.twig. Of course, don't forget to clear your cache after creating the new template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.