2.1.1 Experiment

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


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:


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

In the code after the import of the style.css file, you can add your own css:

Selectors of Twentysixteen

CSS Rule Structure

Next we’ll look at more complicated code.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.