Can’t make Child Theme Word

Home Support eCommerce Gem Can’t make Child Theme Word

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10561
    Anonymous
    Inactive

    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

    #10562
    Anonymous
    Inactive

    I’ve managed to make it work.
    I’ve added the code to functions:

    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’)
    );
    }

    #10842
    nirav
    Keymaster

    Hello Filly,

    We apologize for not being able to respond earlier.
    Past below code in your child theme’s functions.php.

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

    It might be helpful to you.

    Regards,

    Team ProDesigns

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