Home Forums WoodMart support forum Child theme setup not working

Child theme setup not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #240559

    luda
    Participant

    Hi there,
    I need to install a child-theme with my woodmart installation. The Docs say there is a woodmart-child in the downloaded zip package. However, there is none. I tried the manual installation but could not make it work. I put the following code in the style.css and functions.php inside the woodmart-child.

    style.css

    /*
    Theme Name:   Woodmart Child
    Theme URI:   http: //example.com/
    Description:  Child theme for the Woodmart design
    Author:     Gallus
    Author URI:   http: //www.hongkiat.com/blog/
    Template:    woodmart
    Version:    1.0
    */

    funstions.php

    <?php
    
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
        wp_enqueue_style( 'child-style', get_stylesheet_uri(),
            array( 'parenthandle' ), 
            wp_get_theme()->get('Version') // this only works if you have Version in the style header
        );
    }

    file structure:
    …/wp-content/themes/woodmart
    …/wp-content/themes/woodmart-child

    #240579

    Hello,

    Please send me your email in the private area I will send you ready to use child theme.

    Best Regards

    #240987

    luda
    Participant

    Here you go.

    Thanks.

    #240996

    Hello,

    I have sent it.

    Please check your mail.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)