October 1, 20178 yr I have a template which has the main css path as ../css/main.css, although there is a style.css which does not have anything within it... Here is my function.php <?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . '../css/main.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } ?> Even when i create the child style.css page and add the info at the time, it still shows the parent styles without it connecting Any ideas what i can do to my child theme? I have tried so many ways and followed the wordpress manual
October 1, 20178 yr The parent CSS will always take precedence. The child theme CSS set up the child theme specific styles. If you want a complete set of different styles you need to add them all to your child theme CSS However.... Why are you still using 2015?
Create an account or sign in to comment