[wp-trac] [WordPress Trac] #59997: Twenty Twenty-Four Doesn't Enqueue Stylesheet

WordPress Trac noreply at wordpress.org
Sun Dec 3 22:36:54 UTC 2023


#59997: Twenty Twenty-Four Doesn't Enqueue Stylesheet
---------------------------+----------------------
 Reporter:  script2see     |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Bundled Theme  |     Version:  6.4
 Severity:  normal         |  Resolution:  wontfix
 Keywords:                 |     Focuses:  css
---------------------------+----------------------

Comment (by script2see):

 I understand the intent, but some types of blocks don't have all the
 needed functionality yet. So, custom CSS rules are needed as a supplement
 to the theme.

 I've been customizing WordPress themes for many years, and I have always
 written style rules for style.css.

 After examining the readme file for the Twenty Twenty-Four theme, I found
 nothing that would have indicated that the stylesheet hadn't been
 enqueued. Besides, I would need the plugin, Create Block Theme, to export
 a child theme version. That functionality has not yet been built into
 WordPress core.

 I would certainly be willing to help flesh out the documentation for the
 theme and WordPress core. I wrote content for a custom software
 development company recently.

 I don't think a lot of WordPress developers and users were aware that
 style.css is no longer enqueued.

 Replying to [comment:2 poena]:
 > Hi
 > This is intentional because the theme is a block theme and does not use
 this file.
 >
 > Instead, all custom CSS in the theme is loaded only when and where it is
 needed. As a bundled and default theme it is important that it uses the
 best and current practices.
 >
 > -It is not recommended to make changes directly to theme files.
 > Instead you can use a child theme or the custom CSS features that are
 built into WordPress.
 >
 >

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59997#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list