Hi,
I had to add a priority to the function. I have added this to your child theme functions.php
file.
function your_prefix_dequeue_theme_styles(){
wp_dequeue_style( 'main-css' );
}
add_action( 'wp_enqueue_scripts', 'your_prefix_dequeue_theme_styles', 100 );
– This will remove the duplicated stylesheet error.
Thanks,
David.