Hi,
I'm using 7.1 version of betheme. But style.css loading twice
...wp-content/themes/betheme-child/style.css?ver=7.1
...
wp-content/themes/betheme-child/style.css?ver=4.1.1
in function.php
// Enqueue the parent stylesheet
wp_enqueue_style( 'style', get_template_directory_uri() .'/style.css' );
// Enqueue the parent rtl stylesheet
if ( is_rtl() ) {
wp_enqueue_style( 'mfn-rtl', get_template_directory_uri() . '/rtl.css' );
}
// Enqueue the child stylesheet
wp_enqueue_style( 'mfn-child-style', get_stylesheet_directory_uri() .'/style.css' );
Could you help me? Thank you.
Comments
this possibility was added within one of the recent updates because lot's of users requested about it. If you don't want styles to be loaded twice, then just remove the last line: