As you can see I have themed my blog to match the rest of my site. I did this using child themes. Child themes work by having a parent theme they run off with an exception to any changes that you make to the child theme that will then overwrite the parent theme.

When making a child theme you can choose to link the child stylesheet to the parent theme stylesheet by adding @import url(“../parent-theme/style.css”); to the child style.css document. The other option is to start from scratch with the style.css file and write all the CSS by hand. I opted for the linking since it saves a lot of time and makes sure that no sections miss styling.

The benefits of using a child theme over modifying the original or parent theme is that when the theme gets an update from WordPress it will not overwrite all your designs. Because WordPress is always being updated with new features and bug fixes allowing theme designers to update their themes it is really important that you create a structure that can work for today as well as for the future.

2 Responses

  1. Okay, so when you want more than just the style sheet (eg, you’ve changed the header, footer, included comments, and reduced code in various ways), what do you do then? Are there children for more than style sheets?
    Thanks (particle pusher…).

    1. A child needs at a minimum a style-sheet though it can go so far as to replace the parent 100% if you choose. If you have your own header.php, footer.php, and/or functions.php just put it in the child folder and give it the same exact name as the one in the parent folder and the child will replace it when it is chosen as the theme.

Leave a Reply

Your email address will not be published. Required fields are marked *