Skip to content

Commit 3a9539d

Browse files
committed
Improve notice in style.css regarding minification process
1 parent b83b6d0 commit 3a9539d

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/wp-content/themes/twentytwentyfive/style.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature
1515
*/
1616

1717
/*
18-
* NOTICE:
19-
* This file is served minified to improve performance. In order to see edits
20-
* to this file on the frontend, either enable the `SCRIPT_DEBUG` constant or
21-
* run `npm run build` to regenerate `style.min.css`. Alternatively, if you do
22-
* not want to use minified version, then remove the `style.min.css` version from
23-
* being enqueued in `functions.php`.
18+
* IMPORTANT: This file is not normally served directly on the frontend, unless SCRIPT_DEBUG is enabled. For normal page
19+
* loads, the `style.min.css` file will be served instead of `style.css` for improved performance. Because of this, if
20+
* you make and changes to this file in the Theme File Editor, you will not normally see those changes reflected on the
21+
* frontend. You would need to navigate to the theme directory in a terminal and run `npm install && npm run build`.
22+
* Because of this, it is not recommended that you use the Theme File Editor to modify this stylesheet. Instead, you
23+
* should add the necessary style overrides via "Additional CSS" in the Site Editor. If neither of these are an option,
24+
* then you can modify `twentytwentyfive_enqueue_styles()` in `functions.php` so that it never uses the minified file.
2425
*/
2526

2627
/*

src/wp-content/themes/twentytwentytwo/style.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ Twenty Twenty-Two is distributed under the terms of the GNU GPL.
1818
*/
1919

2020
/*
21-
* NOTICE:
22-
* This file is served minified to improve performance. In order to see edits
23-
* to this file on the frontend, either enable the `SCRIPT_DEBUG` constant or
24-
* run `npm run build` to regenerate `style.min.css`. Alternatively, if you do
25-
* not want to use minified version, then remove the `style.min.css` version from
26-
* being enqueued in `functions.php`.
21+
* IMPORTANT: This file is not normally served directly on the frontend, unless SCRIPT_DEBUG is enabled. For normal page
22+
* loads, the `style.min.css` file will be served instead of `style.css` for improved performance. Because of this, if
23+
* you make and changes to this file in the Theme File Editor, you will not normally see those changes reflected on the
24+
* frontend. You would need to navigate to the theme directory in a terminal and run `npm install && npm run build`.
25+
* Because of this, it is not recommended that you use the Theme File Editor to modify this stylesheet. Instead, you
26+
* should add the necessary style overrides via "Additional CSS" in the Site Editor. If neither of these are an option,
27+
* then you can modify `twentytwentytwo_styles()` in `functions.php` so that it never uses the minified file.
2728
*/
2829

2930
/*

0 commit comments

Comments
 (0)