Okay
  Public Ticket #2508512
Child CSS
Closed

Comments

  • David started the conversation

    The Theme is ignoring the style.css in the child theme?

    Please advise

  •  1,833
    Support Agent 1 replied

    Hi David,

    If you are using child theme, in order to have the CSS from the child theme apply to the site, please try adding the following code to your child theme's functions.php file.

    <?php
    function my_theme_enqueue_styles() {
        $parent_style = 'shopscape-style';
        wp_enqueue_style( $parent_style, get_parent_theme_file_uri( 'style.css' ) );
        wp_enqueue_style( 'child-style',
            get_theme_file_uri( 'style.css' ),
            array( $parent_style ),
            wp_get_theme()->get('Version')
        );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    ?>

    Let us know if that helped.


    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!