2

I´m not able to theme a views block. I have found a lot of tutorials on how to rename the twig file, but i´m sure that i´m doing anything wrong with filename.

I use the views-view.html.twig and i have copied it into my theme folder. The machine name of the views block is: views_block__kurstermine_block_1.

I have tried several block names, but no one works. Please can somebody explain me?

views-view--views_block__kurstermine_block_1.html.twig = false
views-view--views_block--kurstermine-block-1.html.twig = false

Thank you!

  • The solution is: block--views-block--kurstermine-block-1.html.twig – Da. Aug 11 '17 at 9:58
  • OR views-view--kustermine--block-1.html.twig – No Sssweat Aug 13 '17 at 1:30
  • 1
    views-view--[view-name]--[machine-name.tpl.php] – No Sssweat Aug 13 '17 at 1:37

Your Answer

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

Browse other questions tagged or ask your own question.