Example – overriding the appearance of a single article
In this example, we will see overrides in action. We want to change the appearance of a single article, making our article titles rendered as an H2
header instead of H1
.
Let’s start creating our override:
- From System Dashboard, open Site Templates.
- Since our website is using the Cassiopeia template, let’s click on Cassiopeia Details and Files.
- Open the Create Overrides tab – as shown in Figure 13.1.
- In the Components group, click on the
com_content
folder. The list of overridable items in the group opens, as shown in Figure 13.6.
Figure 13.6 – Overrides | Create Overrides | com_content
- From the list of overridable items in
com_content
, let’s click onarticle
. This represents the single article view in the frontend. - By clicking on
article
, the system confirms the creation of the override, displaying the path of the override...