Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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.

    #1489062

    Hey slikslok,

    Did you try running your code through a CSS lint tools to see if there is a mistake somewhere?

    Best regards,
    Rikard

    #1489063

    Its not the css. If I copy the identical thing from child-stylesheet into wp-customizer it always (!) works. Never (!) in child….

    #1489064

    0 mistakes by the way…

    #1489071

    Therefore i have this Problem in different Projects and ahve huge layout updates I need a quick research and solution please….

    #1489080

    Hi,

    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,
    Rikard

    #1489092

    If I set up a admin-account for you?

    #1489096

    Hi,

    That would be great, thank you.

    Best regards,
    Rikard

    #1489098

    You’ll find it in the private area. Would be nice, if you can test it within the next houers!
    Thanks

    #1489101

    Hi,

    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,
    Rikard

    #1489102

    As I said: quick css worsk fine – but not if you put in the style.css of the child-theme!

    #1489107

    Hi,

    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,
    Rikard

    #1489118

    Hi and thanks!

    Do you have a technical explanation for that? Isn’t this the usaul way to adress a child-theme?

    Bes regards
    Tim

    #1489127

    Hi,

    Great, I’m glad that we could help. You don’t need to enqueue the default stylesheet from the child.

    Best regards,
    Rikard

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.