Closed Huluti closed 3 years ago
Hi @Huluti , Thanks for your advise. But can you please share the problem you have faced with our child theme?
Hi @jamilbd07. In fact, with the provided child theme each CSS rule that I wanted to applied must be provided with !important
.
It's because the flexia stylesheet was loaded after the child theme. With my code it displace the flexia parent style before the call to the child theme stylesheet:
Before:
<link rel='stylesheet' id='child-style-css' href='https://localhost/wp-content/themes/site/style.css?ver=1.0.0' type='text/css' media='all' />
<link rel='stylesheet' id='flexia-theme-style-css' href='https://localhost/wp-content/themes/flexia/framework/assets/site/css/style.css?ver=5.5.3' type='text/css' media='all' />
After:
<link rel='stylesheet' id='flexia-theme-style-css' href='https://localhost/wp-content/themes/flexia/framework/assets/site/css/style.css?ver=5.5.3' type='text/css' media='all' />
<link rel='stylesheet' id='child-style-css' href='https://localhost/wp-content/themes/site/style.css?ver=1.0.0' type='text/css' media='all' />
It's the first time with a theme that I must do this trick (with wp_dequeue_style and wp_enqueue_style) to have my rules correctly applied.
@Huluti , thanks for finding this out. You are awesome!
@jamilbd07 So you've found the cause of this problem?
@Huluti Actually this issue was never issued before that's why we didn't figure this out. But thank you for finding this issue and solve the issue for us.
HI! I've an issue with the theme which I've managed to fix by myself but it could help you to fix this problem.
For my CSS rules in my custom stylesheet of my child theme to be applied I've to dequeue the flexia CSS to readd it after with the good dependence: