• Hi there, i had a lot of custom styling from my child theme style.css over the parent style.css, but now that all the parent styling moved to assets/front/css/main.css, cant find the way to modify them using a child theme.
    Any ideas? thanks!

    I have this in my functions.php , but now the path is different it doesnt work anymore i guess

    if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
        function chld_thm_cfg_parent_css() {
            wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css' );
        }
    endif;
    add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css' );
Viewing 1 replies (of 1 total)
  • Hi v01d. Welcome to the Hueman forum. I believe, although I’m not certain, that the theme now includes a function to automatically detect if a child theme is active so you no longer need to enqueue the parent stylesheet. I think all the original css selectors have been retained in the existing main stylesheet so your existing child theme stylesheet should still work.

Viewing 1 replies (of 1 total)

The topic ‘Cant rewrite parent main.css from child theme style.css’ is closed to new replies.