{"id":6938444,"date":"2016-01-13T14:11:43","date_gmt":"2016-01-13T14:11:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/changing-imge-size-in-post\/"},"modified":"2016-08-31T00:22:31","modified_gmt":"2016-08-31T00:22:31","slug":"changing-imge-size-in-post","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/changing-imge-size-in-post\/","title":{"rendered":"Changing Imge size in post"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I hope you can help me with this. I want to add a custom size to be able to select it in my posts to make an image appear 600 pixels wide.<\/p>\n<p>I think I must be doing something wrong. Did I put it in the wrong place, or maybe didn&#8217;t I change the code in the right way? I&#8217;m not too good at this apparently \ud83d\ude09<\/p>\n<p>I did put this line on the bottom of the media.php file found in the wp-includes folder:<\/p>\n<pre><code>add_image_size( &#039;custom-size&#039;, 600 ); \/\/ 600 pixels aangepast bestandsformaat\n\nadd_filter( &#039;image_size_names_choose&#039;, &#039;my_custom_sizes&#039; );\n\nfunction my_custom_sizes( $sizes ) {\n    return array_merge( $sizes, array(\n        &#039;your-custom-size&#039; =&gt; __( &#039;600 pixels breed&#039; ),\n    ) );\n}<\/code><\/pre>\n<p>I did find the code over here: https:\/\/developer.wordpress.org\/reference\/functions\/add_image_size\/<\/p>\n","protected":false},"template":"","class_list":["post-6938444","topic","type-topic","status-publish","hentry","topic-tag-code","topic-tag-image-size"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6938444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6938444\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6938444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}