WordPressで画像を投稿する場合、設定>メディアからファイルの「サムネイル」「中」「大」のサイズ設定を変更することが出来ます。
しかしフルサイズを変更することができません。
フルサイズのサイズ上限はmedia.phpを変更する。
wpの最上位にあるwp-includesの
1 2 3 4 5 |
// $size == 'full' has no constraint else { $max_width = $width; $max_height = $height; } |
この部分を変更します。
1 2 3 4 5 |
// $size == 'full' has no constraint else { $max_width = 800; $max_height = $height; } |
“// $size == ‘full’ has no constraint”
で検索すると一発です。
mediatemplateと間違わないようにご注意ください。