Now that we are familiar with the layout of the Gallery 2 directory, we can begin to create our new theme. We have already made a copy of the Matrix theme folder and renamed it to the name for our new theme. For this example, the name of the new theme is dCipollo. But you can name your theme anything as long as it contains only alphanumerics and underscores. This tutorial is part of a group of tutorials about how to use the Gallery 2 software as an online portfolio. See the links below to read the previous tutorials. The first step is to make some changes to the theme.inc file. Even though we gave our new theme a name when we renamed the folder, we still need to tell Gallery that this is a different theme from the Matrix theme. To do this, we will change a few lines of code in the theme.inc file. Open the theme.inc file in your text editor (not in Word or another word processing editor). Here is the code with the areas that we will change highlighted. As you can see, we are changing the name, called a theme ID, from Matrix to the name of our theme. Here is what your new theme.inc code should look like.
Join us in the Digital Art and Design forum. |