Purpose : learn how to locate the template file that is currently being used to render an element and override it in your own theme.
In this tutorial we'll:
- Override the node.twig.html template in our theme
- Make changes to the markup
- Create a content type specific template override like node--CONTENT_TYPE.twig.html
How to override a template file
Locate the template you wish to override
Copy the file
Change the file name
Clear the cache
Modify the template