Equeue Styles Can't Overwrite
-
I’m trying to create a child theme. I can’t seem to understand how Enqueue works.
I have the child folder created. I have the style.css created and in that folder.
I’ve created the functions.php file that looks like this.
<?php //* Code goes here add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( ‘style.blog’, get_template_directory_uri().'/style.blog.css' ); wp_enqueue_style( ‘style.comments’, get_template_directory_uri().'/style.comments.css' ); wp_enqueue_style( ‘style’, get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.custom.css' ); wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.editor.css' ); wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.footer.css' ); wp_enqueue_style( ‘style.respinsive’, get_template_directory_uri().'/style.responsive.css' ); wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.woocommerce.css' ); wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.wpcf7.css' ); } ?>
What’s interesting to me is that the parent css styles are being brought over. However, I can’t overwrite them?
Please help. Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Equeue Styles Can't Overwrite’ is closed to new replies.