11) Child Themes

On the left is an example of posts using the twentytwelve theme.

2012-2013post

The two post on the right are the same posts using a child theme.┬áThe style is that of twentythirteen, but the sequence of elements still follows twentytwelve’s template.

The above example was created using a child theme which consists of nothing more than a style.css file in a folder named twentytwelve-child. The code looks like this:

stylecode1

It is the simplest code for a child theme (although in this example we changed the path of the style.css file).

Next we’ll look at more complicated code.

 

Leave a Reply

Your email address will not be published.