Parent theme style loaded after child style
-
Hi,
I’ve created a child theme, but the parent style is loaded after my custom style.
If I enqueue the parent stlye first and then the child style in functions.php, then the parent is loaded twice: parent, child and parent again.It looks like this:
<link rel=’stylesheet’ id=’parent-style-css’ href=’https://fh.collective.hu/wp-content/themes/twentytwentyone/style.css?ver=5.6′ media=’all’ />
<link rel=’stylesheet’ id=’custom-styles-css’ href=’https://fh.collective.hu/wp-content/themes/fishing/mystyle.css?ver=5.6′ media=’all’ />
<link rel=’stylesheet’ id=’twenty-twenty-one-style-css’ href=’https://fh.collective.hu/wp-content/themes/twentytwentyone/style.css?ver=1.0.0′ media=’all’ />Please help ??
thanks,
Zoltan
- The topic ‘Parent theme style loaded after child style’ is closed to new replies.