Enqueue Style loaded twice

Hi,

I noticed since last updates with the child theme funtions.php, the stylesheet is loading twice.

/* ---------------------------------------------------------------------------
 * Enqueue Style
 * --------------------------------------------------------------------------- */
add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style', 101 );
function enqueue_parent_theme_style() {
    wp_enqueue_style( 'mfn-parent-style', get_template_directory_uri() .'/style.css' );
    wp_enqueue_style( 'mfn-child-style', get_stylesheet_directory_uri() .'/style.css' );
}
<link rel='stylesheet' id='style-css'  href='/themes/freeliner-child/style.css?ver=6.7' type='text/css' media='all' />
...
...
<link rel='stylesheet' id='mfn-parent-style-css' href='.../themes/freeliner/style.css?ver=4.1.1' type='text/css' media='all' />
<link rel='stylesheet' id='mfn-child-style-css' href='.../themes/freeliner-child/style.css?ver=4.1.1' type='text/css' media='all' />
How can we fix this.
Regards

Comments

Sign In or Register to comment.