• Hi,

    Im looking for some advise on my child theme, Iv not had one bit of hope with it so far. Im a beginner to all this so please be patient with me.

    Basically when i edit the child style.css, nothing is happening to my site.

    I was advised to use the code below in the function file, which I have tried but still no joy when editing the child style.css

    add_action( 'wp_enqueue_scripts', 'my_enqueue_styles' );
    
    function my_enqueue_styles() {
    
        /* If using a child theme, auto-load the parent theme style. */
        if ( is_child_theme() ) {
            wp_enqueue_style( 'parent-style', trailingslashit( get_template_directory_uri() ) . 'style.css' );
        }
    
        /* Always load active theme's style.css. */
        wp_enqueue_style( 'style', get_stylesheet_uri() );
    }

    Can someone please help because its beginning to get extremely frustrating?.. Any advise would be highly appreciated.

    Thanks.

    Dan

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child theme problem. Cant get anything to make it work.’ is closed to new replies.