Cant rewrite parent main.css from child theme style.css
-
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)
Viewing 1 replies (of 1 total)
The topic ‘Cant rewrite parent main.css from child theme style.css’ is closed to new replies.
