The Magento 2 Root Template

The Magento 2 root template is used as a base template for all of Magento’s store pages. This is a very basic template, and in HTML terms it contains the HTML5 doctype declaration, <head> and <body> tags.
The root template resolves HTML duplication within Magento 1 applications, as out of the few templates that were …

Custom Page Templates in Magento 2

Magento provides a default number of page templates you can use to display page content on. For example, you can set your CMS Home page to use either the empty, 1 column, 2 columns with left bar, 2 columns with right bar or 3 columns template.

We have the ability to add custom page …

Magento 2 – Overriding Template Files

Magento 2 Overriding Template Files
You can override template files within Magento 2 thanks to its powerful theme inheritance feature. This means you can easily extend themes whilst minimising the maintenance efforts to do so.
For the purpose of this article, we will assume you have already created a basic theme directory structure. In this …