[wp-trac] [WordPress Trac] #39272: Twenty Seventeen: Incorrect $content_width

WordPress Trac noreply at wordpress.org
Thu Dec 15 00:14:15 UTC 2016


#39272: Twenty Seventeen: Incorrect $content_width
------------------------------+----------------------------
 Reporter:  celloexpressions  |       Owner:  laurelfulford
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  4.7.1
Component:  Bundled Theme     |     Version:  4.7
 Severity:  major             |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+----------------------------
Changes (by laurelfulford):

 * keywords:  needs-refresh => has-patch


Comment:

 Thanks for catching this @celloexpressions!

 [attachment:39272.1.patch] builds off the patch @sstoqnov submitted, plus:
 * Changes the default `$content_width` to 525
 * Updates the `$content_width` on the front-page.php to 644px when the one
 column layout is used.
 * Updates the `$content_width` on pages to 740px when the one column
 layout is used.
 * Updates the `$content_width` on single posts when no sidebar widgets are
 assigned.

 The blog index, archive and search all show the sidebar widgets as well,
 but when they're not present it doesn't affect the content width.

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


More information about the wp-trac mailing list