If you are wanting to use the Twenty Twelve theme in WordPress, but don’t want to worry about losing any of your edits to the main theme template whenever WordPress has updates, then you will need to create what is known as a Child Theme.
This tutorial will walk you step-by-step on how to set this up for your blog or website. It can seem complicated if you aren’t familiar with this type of function, but by following the steps below you’ll be set up in under 10 minutes.
You’ll need to start by going into your CPanel with your web host. You then need to open your File Manager and set it to open up your blog’s domain. You’ll then need to click ‘wp-content’ followed by ‘themes’
Once you’ve done that you will need to create a new folder and name it whatever you want your child theme to be called. This does not matter. I named mine ‘My Twenty Twelve’ for this example.
The next step is to create a new file named ‘style.css.’ Once that is created you will need to open ‘style.css’ to be edited. You can also do this step directly in WordPress by opening the ‘editor’ tab under ‘Appearance.’
Copy the following code and then paste it into your editor.
Theme Name: Your theme name here
Theme URI: Your blog URL here
Description: Child theme for the Twenty Twelve theme
Author: Your name here
Author URI: http://example.com/about/
You can edit all of those fields with your own info if you like. Click the save button. Go into your WordPress Dashboard and activate your child theme. Your blog should now look exactly like the Twenty Twelve Parent theme.
The awesome thing about the Child Theme is that you can place any coding you’d like in the ‘style.css’ folder and it will override whatever the Parent Theme says.
For example you could paste:
into your style.css file under the “@import URL…” line and it will now stop WordPress from showing the date that your posts were published.
You can also create each of the ‘.php’ files such as ‘single.php’ in your child theme and it will override whatever coding may be found in the parent theme.