1

I'm trying to load a child theme on a Custom WP Theme that was created by another developer.

I created a stylesheet based on the Codex instructions but I'm not sure what's going wrong.

Here's my style.css:

/*!
Theme Name: Integrative Wisdom Child
Theme URI: http://underscores.me/
Author: Drew Lettner after Tony Klose
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: integrative-wisdom
*/

and here's my functions.php:

<?php
function my_theme_enqueue_styles() {

    $parent_style = 'parent-style';

    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( $parent_style )
    );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
3
  • Put the code on Pastebin.com so that we can see it. Is the theme you are working off of already a child theme?
    – Fencer04
    Jul 18, 2016 at 20:10
  • Thanks! Here is the code on pastebin: pastebin.com/rhcu3fyc The theme I'm working from is not a child theme . . . Jul 18, 2016 at 20:30
  • Code edited in to question.
    – Tim Malone
    Jul 18, 2016 at 20:46

1 Answer 1

4

You are missing part of the boilerplate needed in the comments area at the top of the stylesheet file. You need a line that says:

Template: [name of parent theme folder]

For example if the folder in the /wp-content/themes folder for the parent theme is integrative-wisdom you would have:

/*!
Theme Name: Integrative Wisdom Child
Theme URI: http://underscores.me/
Author: Drew Lettner after Tony Klose
Author URI: http://underscores.me/
Template: integrative-wisdom
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: integrative-wisdom
*/
1
  • oh WOW! I am quite the n00b INDEED! Man, thank you so much I owe you one! Jul 18, 2016 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.