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' );
}
Regards
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' />How can we fix this.
...
...
<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' />
Regards
Comments
thanks for the info. This will be fixed with next update of course.
we update to 6.8 but the the stylesheet is still loading two times.
I'm at local installation at the moment, but attacheed is a screenshot of the source code.
Regards