
Tagged: css child-theme vs. customizer
-
AuthorPosts
-
September 8, 2025 at 4:30 pm #1489058
Hi,
I have in different Projects a problem with css-styles.
After setting the project up with child theme at some point changes in css doesn’t work. If I do them in the WP-Customizer it works wothout problem. That is totally annoying and confusing, because I know have to places where to look for CSS-
I turned of CSS merging, all caching plugins and so on. As I said I have this problem in a bunch of Projects, so there must be a css-parsing problem in Enfold.
Please help me out quick, I’ve to da a lot of changes and want to do them in the child-theme, not the customizer.September 8, 2025 at 5:57 pm #1489062Hey slikslok,
Did you try running your code through a CSS lint tools to see if there is a mistake somewhere?
Best regards,
RikardSeptember 8, 2025 at 6:04 pm #1489063Its not the css. If I copy the identical thing from child-stylesheet into wp-customizer it always (!) works. Never (!) in child….
September 8, 2025 at 6:05 pm #14890640 mistakes by the way…
September 8, 2025 at 11:02 pm #1489071Therefore i have this Problem in different Projects and ahve huge layout updates I need a quick research and solution please….
September 9, 2025 at 7:41 am #1489080Hi,
We cannot reproduce this problem on our test installations, and we haven’t had any other reports from other user either. How can we reproduce it?
Best regards,
RikardSeptember 9, 2025 at 5:35 pm #1489092If I set up a admin-account for you?
September 9, 2025 at 7:24 pm #1489096September 9, 2025 at 7:29 pm #1489098You’ll find it in the private area. Would be nice, if you can test it within the next houers!
ThanksSeptember 9, 2025 at 7:37 pm #1489101Hi,
Thanks for that. I tried adding CSS to Quick CSS, and that applied as expected. Which CSS in particular is not working for you?
Best regards,
RikardSeptember 9, 2025 at 7:38 pm #1489102As I said: quick css worsk fine – but not if you put in the style.css of the child-theme!
September 9, 2025 at 10:07 pm #1489107Hi,
I removed this from functions.php, and it’s working as expected after that:
function enfold_child_enqueue_parent_style() { $child_theme = wp_get_theme( 'enfold-child' ); wp_dequeue_style( 'avia-style' ); wp_deregister_script( 'avia-style' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array(), $child_theme->get( 'Version' ) ); } add_action( 'wp_enqueue_scripts', 'enfold_child_enqueue_parent_style', 20 );
Best regards,
RikardSeptember 10, 2025 at 7:50 am #1489118Hi and thanks!
Do you have a technical explanation for that? Isn’t this the usaul way to adress a child-theme?
Bes regards
TimSeptember 10, 2025 at 10:33 am #1489127 -
AuthorPosts
- You must be logged in to reply to this topic.