Trouble creating child theme of Charitize Pro

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #131126
    envisionHab
    Participant

    I’ve followed the steps in https://developer.wordpress.org/themes/advanced-topics/child-themes/ and tried numerous variations on the code there but can’t get the child theme (which is still basically empty at this point) to load properly. The menus I’ve created are shown but none of the other Appearance settings or other customizations that I’ve made, instead it shows the default theme images etc. Everything returns to normal when I switch back to the parent Charitize Pro theme.

    Is there anything special I need to do for this parent theme?

    Here’s an example of what I’ve tried in functions.php:

    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
        $parenthandle = 'charitize-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
        $theme = wp_get_theme();
        wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css', 
            array(),  // if the parent theme code has a dependency, copy it to here
            $theme->parent()->get('Version')
        );
        wp_enqueue_style( 'charitize-child-style', get_stylesheet_uri(),
            array( $parenthandle ),
            $theme->get('Version') // this only works if you have Version in the style header
        );
    }

    Thanks a lot!
    Alex

    #131240
    Patrick
    Participant

    Any updates on this? Dealing with the exact same issue.

    #131642
    envisionHab
    Participant

    Can anybody at Evision answer this? I’d really like to use a child theme!

    Thanks,
    Alex

    #131876
    eVision Themes
    Keymaster

    Hi envisionHab and ThAIRapy,

    Sorry for the late response, we are checking what happened with this and will inform you as soon as we get a solution.

    Thank you for your patience.

    Best regards.

    #131896
    eVision Themes
    Keymaster

    We have talked with tech department and unfortunately, we can’t help you with this.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.