Skip to content

Commit 8ceb867

Browse files
b1ink0sirreal
andcommitted
Simplify notice in style.css for Twenty Twenty-Two and Twenty Twenty-Five themes
Co-authored-by: Jon Surrell <[email protected]>
1 parent ff55cb6 commit 8ceb867

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

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

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

1717
/*
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 any 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.
18+
* IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
19+
* in most instances, the `style.min.css` file will be served. It is not recommended that you
20+
* use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
21+
* overrides via "Additional CSS" in the Site Editor.
2522
*/
2623

2724
/*

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

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

2020
/*
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 any 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.
21+
* IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
22+
* in most instances, the `style.min.css` file will be served. It is not recommended that you
23+
* use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
24+
* overrides via "Additional CSS" in the Site Editor.
2825
*/
2926

3027
/*

0 commit comments

Comments
 (0)