[wp-trac] [WordPress Trac] #46262: odd content_width in Twenty Nineteen theme

WordPress Trac noreply at wordpress.org
Sat Feb 16 17:54:33 UTC 2019


#46262: odd content_width in Twenty Nineteen theme
---------------------------+-----------------------------
 Reporter:  nosilver4u     |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  5.0.3
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 The global value $content_width is set to 640px in Twenty Nineteen. I
 can't see anywhere that this value even makes sense. Any text within an
 article is in a box 932px wide, and the posts themselves are in a
 container that is 1524px.

 Now, what does it matter? The theme displays things correctly via CSS, but
 this value is used by image optimization features in Jetpack and EWWW
 Image Optimizer (possibly others). The result is that we have 640px images
 (roughly) displaying in containers that are at least 932px. Best I can
 tell, Twenty Nineteen will display them at whatever size the user chooses:
 large=1024px, while full-width is 1905px, and wide-width is 1404px.

 Perhaps there is information from Gutenberg itself that can be leveraged
 by these plugins, but setting content_width to a more sensible default
 would be a good start.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46262>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list