• Resolved jwurster

    (@jwurster)


    I tried making a child theme in per WordPress instructions. I uploaded and activated, but the site does not have the same layout as the parent. When I first uploaded the zip file and activated, I got an error that the index.php file was missing. So, I added it to the zip and was able to activate the child theme. But it doesn’t display.

    Can you please help?

    Thank you, jim

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Derek

    (@chiroderek)

    Usually that happens when someone doesn’t pull the parent theme styles into the child theme using a function in the functions.php file.

    It looks like this:

    add_action( 'wp_enqueue_scripts', 'chiro_pro_enqueue_styles' );
    function chiro_pro_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }

    If you give me your email, I can send you a zip file of a working child theme that I’ve tested and know to work.

    I don’t see any way to attach it in this forum.

    Theme Author Derek

    (@chiroderek)

    I’ve just added a copy of the child theme chiro-pro-child.zip to the downloads section on chirothemes.com

    So anyone can sign up there for free, and download the file to import the settings for the contact form, and a working child theme.

    Thread Starter jwurster

    (@jwurster)

    I did sign up but don’t see any downloads. Can you please send to [email protected]?

    rossmarc

    (@rossmarc)

    Code for child theme

    /*
    Theme Name: Chiro Pro Premium Child Theme
    Theme URI: https://www.ChiroThemes.com
    Description: Chiro Pro Premium Child
    Author: Derek Gibbons DC, from ChiroLoop Website Solutions
    Author URI: https://www.ChiroThemes.com
    Template: chiro-pro-premium
    Version: Child
    */

    @import url(“../chiro-pro-premium/style.css”);

    /* =Theme customization starts here
    ——————————————————- */

    Thread Starter jwurster

    (@jwurster)

    Thank you for the child theme. It works and I see where I made my mistake.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Child Theme not displaying correctly’ is closed to new replies.