Twenty Twelve Child Theme
-
Good morning!
I’ve finally managed to set up a child theme on my site, and everything works as before, as far as I can see. However, I’d like to double-check something with you guys before I relax about it entirely.
On the WordPress Child Themes help page it says “If your theme has more than one .css file (eg. ie.css, style.css, main.css) then you will have to make sure to maintain all of the Parent Theme dependencies.”
So, firstly, could anyone explain what that means in simpler terms, and secondly, do I have to do something else with my child theme, even though it seems to be working correctly?
If I click on the ‘editor’ tab within the Twenty-Twelve theme itself, I can see under styles that it has ‘style.css,’ ‘editor-style-rtl.css,’ ‘editor-style.css,’ and ‘rtl.css.’ Whereas in my Hostgator Control Panel I can only see under wp-content one directory for CSS, with just one file in it titled ie.css.
So, my main query is, do I have to “maintain all of the Parent Theme dependencies,” whatever that means, or have I done enough by just adding the below (obviously with the changes)…
/* Theme Name: Twenty Fifteen Child Theme URI: https://example.com/twenty-fifteen-child/ Description: Twenty Fifteen Child Theme Author: John Doe Author URI: https://example.com Template: twentyfifteen Version: 1.0.0 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: twenty-fifteen-child */ and this...
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
?>Many thanks for your help,
Stuart
- The topic ‘Twenty Twelve Child Theme’ is closed to new replies.