[wp-trac] [WordPress Trac] #55291: Can't access Custom CSS with theme Twenty Twenty-Two

WordPress Trac noreply at wordpress.org
Thu Mar 3 10:03:00 UTC 2022

#55291: Can't access Custom CSS with theme Twenty Twenty-Two
 Reporter:  DeveloperWil             |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Themes                   |     Version:  5.9
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:
Changes (by costdev):

 * keywords:  reporter-feedback => reporter-feedback close


 Hi @DeveloperWil, welcome to Trac!

 @audrasjb is correct.

 - Additional CSS is theme-specific.
 - If you add Additional CSS to Twenty Eleven then switch to Twenty Twelve,
 the Additional CSS that you added will not be available.
 - If you switch back to Twenty Eleven, the Additional CSS that you added
 will be available again.

 For block themes, if you do not wish to create a child theme and add your
 custom CSS there, you can access some styling options in the Editor by
 clicking the Styles icon at the top right of the Editor.

 If you are using a block theme and you still want access to Additional CSS
 via the Customizer:

 1. Create a folder called `enable-customizer` in `wp-content/plugins`.
 2. Inside this folder, create a new file called `enable-customizer.php`.
 3. Paste the following code into the file and save.


  * Plugin Name: Enable Customizer
  * Description: Enables the Customizer.
  * Author:      WordPress Contributors
  * Author URI:  https://www.wordpress.org
  * License:     GPLv2 or later
  * Version:     1.0.0

 add_action( 'customize_register', '__return_true' );

 4. In the WordPress Admin, navigate to `Plugins > Installed Plugins` and
 activate the Enable Customizer plugin.

 You should now be able to navigate to `Appearance > Customize` and access
 the Additional CSS panel.

 This doesn't appear to be a valid bug, but is actually the intended
 behaviour of the Additional CSS panel.

 I'll add the `close` keyword for now, pending `reporter-feedback`.

Ticket URL: <https://core.trac.wordpress.org/ticket/55291#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list