• Hi there,
    I’m currently trying to set up a child theme for this theme but can’t make it work.
    I’ve added a new folder in Theme directory called “ecommerce-gem_child” and functions.php and style.css files.
    In the style.css I’ve added the opening like this:
    /*
    Theme Name: eCommerce Gem – Child Theme
    Theme URI: https://promenadethemes.com/downloads/ecommerce-gem/
    Author: Promenade Themes
    Author URI: https://promenadethemes.com
    Description: Default eCommerce Gem child theme
    Template: ecommerce-gem

    */
    But yet when i activate the child theme everything messes up.
    What am I doing wrong?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter byte37

    (@byte37)

    I’ve managed to make it work by adding on functions this code:
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    function my_theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    function my_theme_enqueue_styles() {

    $parent_style = ‘parent-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.

    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 ),
    wp_get_theme()->get(‘Version’)
    );
    }

    Hello byte37,

    We are very sorry for the delayed response.

    Please Rename Theme directory to ecommerce-gem-child and replace my_theme_ with your theme name.

    Please have a look here in case you would like to have more details related to the child theme.

    Feel free to get in touch in case of any other query.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t make Child Theme Word’ is closed to new replies.