1414add_action (
1515 'wp_enqueue_scripts ' ,
1616 function () {
17- wp_enqueue_style ('sage/main.css ' , asset_path ('styles /main.css ' ), false , null );
18- wp_enqueue_script ('sage/main.js ' , asset_path ('scripts /main.js ' ), ['jquery ' ], null , true );
17+ wp_enqueue_style ('sage/main.css ' , asset_path ('css /main.css ' ), false , null );
18+ wp_enqueue_script ('sage/main.js ' , asset_path ('js /main.js ' ), ['jquery ' ], null , true );
1919
2020 if (is_front_page ()) {
21- wp_enqueue_script ('sage/front-page.js ' , asset_path ('scripts /front-page.js ' ), ['jquery ' ], null , true );
21+ wp_enqueue_script ('sage/front-page.js ' , asset_path ('js /front-page.js ' ), ['jquery ' ], null , true );
2222 }
2323
2424 // Move Wordpress jQuery to footer
@@ -35,7 +35,7 @@ function () {
3535add_action (
3636 'wp_head ' ,
3737 function () {
38- $ critical = @realpath (asset_path ('styles /critical.css ' ));
38+ $ critical = @realpath (asset_path ('css /critical.css ' ));
3939 if (file_exists ($ critical )) {
4040 echo '<style> ' . @file_get_contents ($ critical ) . '</style> ' ;
4141 }
@@ -128,7 +128,7 @@ function () {
128128 * Use main stylesheet for visual editor
129129 * @see resources/assets/styles/layouts/_tinymce.scss
130130 */
131- add_editor_style (asset_path ('styles /main.css ' ));
131+ add_editor_style (asset_path ('css /main.css ' ));
132132 },
133133 20
134134);
0 commit comments