[Hummingbird] When activating cdn option, source order is chanded.

When activating cdn option, source order is chanded.

I enqueue my css files using wp enqueue style in my original theme file.

//wp_enqueue_style( ‘animate.css3.7.0′,’https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css’, array(), false,’all’:wink:;

//wp_enqueue_style( ‘nice-select1.1.0′,’https://cdnjs.cloudflare.com/ajax/libs/jquery-nice-select/1.1.0/css/nice-select.min.css’, array(), false,’all’:wink:;

//wp_enqueue_style( ‘magnific-popup1.1.0′,’https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css’, array(), false,’all’:wink:;

wp_enqueue_style( ‘bootstrap4.1.3′,’https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css’, array(), false,’all’:wink:;

//Style.css

wp_enqueue_style( THEME_SLUG . ‘-style’, get_stylesheet_uri(), array(‘bootstrap4.1.3′,’fontAwesome5.4.1’:wink:, CURRENT_THEME_VERSION, ‘all’ );

In my case, when not activating cdn option, the order of above files is

<link rel=’stylesheet’ id=’bootstrap4.1.3-css’ href=’https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css?ver=4.9.8′ type=’text/css’ media=’all’ />

<link rel=’stylesheet’ id=’ultimate-gutenberg-style-css’ href=’https://ug.idea-hack.com/wp-content/themes/ultimate-gutenberg/style.css?ver=1.0′ type=’text/css’ media=’all’ />

And then, when activating cdn option, source order is

<link rel=’stylesheet’ id=’ultimate-gutenberg-style-css’ href=’https://ug.idea-hack.com/wp-content/themes/ultimate-gutenberg/style.css?ver=1.0′ type=’text/css’ media=’all’ />

?

??Other files

?

<link rel=’stylesheet’ id=’bootstrap4.1.3-css’ href=’https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css?ver=4.9.8′ type=’text/css’ media=’all’ />

This make a different css result on my website, and I want to fix the order of these file.

How should I fix this?

I want to ask for a help.

Furthere more, when activating cdn option, some my css files is not changed to display cdn version.

For example

<link rel=’stylesheet’ id=’ultimate-gutenberg-style-css’ href=’https://ug.idea-hack.com/wp-content/themes/ultimate-gutenberg/style.css?ver=1.0′ type=’text/css’ media=’all’ />

I want to know why not cdn version is displayed, and how to fix it.

King Regards

KAZUKI KIKUCHI