Exercises
It’s time to apply the knowledge about child templates acquired in this chapter.
Exercise 1 – creating a child template
In this exercise, you are required to create a child template in your Joomla 4 installation, using Cassiopeia as the default frontend template.
- Open System Dashboard in your backend.
- Click on Site Templates, and then on Cassiopeia Details and Files.
- Click on Create Child Template, set the name to
MyChild
, and then click on Create Child Template in the popup. - The child template has been created. Click on the Close button to go back to the list of templates, and then click on Cassiopeia_MyChild Details and Files to open it.
- Create a file called
custom.css
in the/
media/templates/site/cassiopeia_mychild/css/
folder. - In the file, type the following CSS code (we’re going to change the color of the footer that we set in Exercise 1 of Chapter 13):
.myfooter {
font-size: 13px;
...