Child theme additional css not working
-
Hi,
with the 1.3 version the child theme’s additional css is not overriding the parent css.
ie..np-home-icon a { background: red; }
Earlier version (1.14) worked as it should.
I’ve tried to enque the child css after the parent, but it neither worked.
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parent_style = 'news-portal-css'; wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); }
Maybe the code is not right.
Any help?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Child theme additional css not working’ is closed to new replies.