• i have created a child theme and included this code in the functions.php file to add parent theme css

    functions.php code:

    <?php
    
    function my_theme_enqueue_styles() {
    
      
        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', 'my_theme_enqueue_styles' ); 
    ?>

    Then i tried to add new css for my website page in the child theme style.css file but that css code is updating in the file.Changes are not reflecting on page

    please help me to resolve this issue asap .

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘child theme css is not updating .’ is closed to new replies.