Theming views fields with twig I have a search results view from Search API where I need to use the excerpt that highlights the keywords being searched. In this instance, that prevents me from using a view mode output as the result.

In this instance, I have a view set up to output title, URI, date modified and search excerpt. I have a decent bit of theming to do around the form and results, but I can't seem to figure out how to view both the template suggestions for each view field, or just theme it manually in the given template views-view--unformatted--search--results.html.twig.

I also tried {{ kint(row) }} and even when viewing on its own page, basically locked up my browser.

So for instance, for the title, I need the markup to be:

&lt;a href="#" class="search-result__item-title"&gt;Foo Exam&lt;/a&gt;

For consistency reasons, I would like to control it from twig templates instead of attempt to do it in the views admin (setting label field etc settings).
You're probably looking for

views-view-fields--[view-name]--[machine-name].html.twig

views-view-fields--search--results.html.twig

In your view click on your title field and uncheck Link to the content. 

then your template file 

&lt;a href="#" class="search-result__item-title"&gt;{{ fields.title.content }}&lt;/a&gt;


Not really sure if you really want # as href. I think you want to link to content. So add Path as a field.

&lt;a href="{{ fields.path.content }}" class="search-result__item-title"&gt;{{ fields.title.content|striptags }}&lt;/a&gt;


Note: You'll probably want to use |striptags if you do not strip the markup from the views UI. Unless you do not mind having &lt;divs&gt; wrapping your title text. 

then {{ fields.field_machine_name.content }} each of the rest of your fields that you want to output. 


  Important: Make sure TWIG DEBUG is off, as it tends to screw up templates in Views.