Illustratr Child Theme Creation
-
Hello,
I am trying to get a workable child of the Illustratr theme. I have not made any changes to the theme and this is a fresh install. I have looked at the codex and so many websites on how to write it best. I even tried the old @import url (which I prefer not doing since it is the old way). I got my parent theme loaded and I created the functions.php and style.css. The codex mentioned a confusing bit about the enqueue being different if your theme has multiple .css files, which Illustratr does. Illustratr has 3. style.css, editor-style.css and rtl.css. I created those files too.
I cannot get this child theme to call the parent style sheet, or even the header or footer. WordPress says it is calling the parent but I don’t have anything except a basic html page of posts and text.
Here is what I got so far.
style.css
/* Theme Name: Illustratr Child Theme URI: https://wordpress.com/themes/illustratr/ Description: Illustratr Child Theme Author: me Author URI: https://wordpress.com/themes/ Template: illustratr 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, Text Domain: illustratr-child */
functions.php
<?php add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' ); function my_enqueue_assets() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); }
rtl.css
/* Theme Name: Illustratr Child Template: illustratr */
editor-style.css
/* Theme Name: Illustratr Child Theme URI: https://wordpress.com/themes/illustratr/ Description: Illustratr Child Theme Author: me Author URI: https://wordpress.com/themes/ Template: illustratr 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, Text Domain: illustratr-child */
What simple oversight am I missing?
- The topic ‘Illustratr Child Theme Creation’ is closed to new replies.