• Good morning,

    the newest update contains a change in enqueuing the css-files.

    If you use a childtheme, the childtheme’s style.css will be enqueued by the parenttheme. But now “sydney-style-min” will be enqueued after “sydney-style”, causing the parenttheme-css to overwrite the css of the childtheme-css.

    That`s a bis problem! Please fix it.

    As a hack until an update, one can change the order of the enqueuing of the css-files in the functions.php (starting at line 225).

    Additionaly it would be nice, if you could change the versioning of “sydney-style” from the date of the last change of the parenttheme to the last timestamp of change of the style.css:
    wp_enqueue_style( ‘sydney-style’, get_stylesheet_uri(), ”, ‘20220824’ );
    changing to
    wp_enqueue_style( ‘sydney-style’, get_stylesheet_uri(), ”, date( “Ymd.His”, filemtime( get_stylesheet_directory() . “/style.css” ) ));

    This way, there would be no caching-issues if you use a childtheme and make changes to the childtheme`s style.css.

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We’ll investigate and make the changes in the next version.

    Vlad

    Thread Starter casimich

    (@casimich)

    Sorry, it has to be:
    wp_enqueue_style( ‘sydney-style’, get_stylesheet_uri(), ”, array(), date( “Ymd.His”, filemtime( get_stylesheet_directory() . “/style.css” ) ));

    Thx!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong order enqueuing CSS after Update’ is closed to new replies.