Parent theme custom css not loading
-
Hi,
I activated my child theme, functions.php and style.css works well.
but all the custom CSS codes are not showing on the website. Even widgets and the logo image disappeared.below is functions.php of the child theme:
<?php // Queue parent style followed by child/customized style add_action( 'wp_enqueue_scripts', 'func_enqueue_child_styles', 99); function func_enqueue_child_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_dequeue_style('shopper'); wp_enqueue_style( 'shopper', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); }
Is there something wrong in the code? Or is there anything I have to do to import the parent theme CSS?
Thank you in advance.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Parent theme custom css not loading’ is closed to new replies.