Skip to main content
5 of 6
improved grammar and spelling
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

How can I set the template to use for a view page display?

I created a view for my content, where fields are displayed as a page. Scanning the source code, I noticed it uses the html--default--2.html.twig template.

I created a new custom template. how can I set that template for all the view pages, instead of the default template?

Notice that I've read this and this about custom templates for view. I've tried to rename my custom template views-view--page.html.twig, and put it in my template folder, and also in /core/modules/views/templates, flushed cache, but nothing happens. My view page is still using the default template.

Max
  • 1
  • 1