• FUNCTIONS.PHP
    <?php

    function enqueue_styles_child_theme() {

    $parent_style = ‘parent-style’;
    $child_style = ‘child-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 ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_styles_child_theme’ );

    STYLE.CSS
    /*
    Theme Name: eStore child
    Author: Name.
    Author URL: https://mydomain.com/
    Template: estore
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: estore-child
    */

    IMAGE ERROR:
    https://ibb.co/M5x2LC3

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error on create child theme. Please help’ is closed to new replies.