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

  1. Locate the template you wish to override
  2. Copy the file
  3. Change the file name
  4. Clear the cache
  5. Modify the template

results matching ""

    No results matching ""