Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38906, comment 14


Ignore:
Timestamp:
05/25/2022 01:35:10 PM (4 years ago)
Author:
antonvlasenko
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38906, comment 14

    initial v1  
    33Why?
    441. The current theme limits the width of an image. It’s not a WordPress limitation. The `Understrap` theme sets the value of the `$content_width` variable to 640 pixels. The `Twenty Twelve` theme sets `$content_width` to be 625 pixels. You can verify it here: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-content/themes/twentytwelve/functions.php#L29
    5 2. When you upload an image, WordPress will create images no wider than the value of the`$content_width` variable. As far as I understand, this is by design and is needed not to break the layout.
     52. When you upload an image, WordPress will create thumbnails no wider than the value of the`$content_width` variable. As far as I understand, this is by design and is needed not to break the layout.
    663. To overcome this limitation, you can manually increase the value of the `$content_width` variable (at your own risk) and then re-upload the images.