Child theme not over riding theme option syles
-
Hello, I am new to Virtue theme and WP. I am trying to put together a site and created a child theme for it. Here is the link to the site my site My child theme css is not over writing the theme option styles though I used !important clause in the style. I am trying to change the .headerclass color to black ( this is just an example..) What am I doing wrong? Here is what I have in the CSS file `/*
Theme Name: SCMP – Child
Theme URI: https://www.statecollegemoments.com/virtue/
Description: Child theme for SCMP
Author: SCMP
Author URI: https://www.kadencethemes.com/
Template: virtue
Version: 1.0.0
*/
.headerclass {
color:#000 !important;
}`and in the functions.php I have
//Add your custom functions here. add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/virtue.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/virtue.css', array('parent-style') ); }
Thank you for your help…
- The topic ‘Child theme not over riding theme option syles’ is closed to new replies.