I am trying to override the field rendered in a view. The field name is: this_is_field

I copied the /core/modules/views/views-view-field.html.twig and placed it my theme folder.

I renamed with both methods below


I have turned on Twig debugging and still the copied template isn't working.

Am I renaming wrong?

  • Is that the suggestion pattern?
    – Kevin
    Commented Nov 23, 2018 at 17:17
  • @Kevin What do you mean?
    – pierostz
    Commented Nov 23, 2018 at 17:49
  • 1
    @pierostz updated my answer
    – No Sssweat
    Commented Nov 26, 2018 at 9:56

2 Answers 2


It needs to be:


If you look in Manage Fields, your field machine name is probably field_this_is_field.

Therefore, in your case:


Note that this is will override for all views that have this field, if you want to only target a specific view use:


  • The first method worked like a charm. How about the second...meaning what is the [view-name]?
    – pierostz
    Commented Dec 3, 2018 at 10:11
  • @pierostz the name of your view, if your view is called "Cool Items" then you add there cool-items
    – No Sssweat
    Commented Dec 3, 2018 at 10:18
  • Ok got it working.
    – pierostz
    Commented Dec 3, 2018 at 10:26
  • This answer did not work for me. To get the override working I used views-views-field--[view_name]--[display_name]--[field_name]. Note the use of underscores instead of hyphens for the view, display and field names.
    – Ben
    Commented Apr 18, 2021 at 8:37

I tried second method from above answer and it didn't work. What works for me is views-view-field--[view-name]--[field-machine-name].html.twig

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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