admin管理员组文章数量:1315377
When a user adds media to the WYSIWYG, is there a way to set the default image size to large?
It defaults to medium, I'd like this to be "large" without the user having to change the value.
When a user adds media to the WYSIWYG, is there a way to set the default image size to large?
It defaults to medium, I'd like this to be "large" without the user having to change the value.
Share Improve this question asked May 17, 2016 at 14:27 Ben EverardBen Everard 1,2885 gold badges19 silver badges34 bronze badges1 Answer
Reset to default 11If you add this to functions.php, this will update the options as set.
function custom_image_size() {
// Set default values for the upload media box
update_option('image_default_align', 'center' );
update_option('image_default_size', 'large' );
}
add_action('after_setup_theme', 'custom_image_size');
You can update the options as you need.
本文标签: mediaHow to set the default embed image size
版权声明:本文标题:media - How to set the default embed image size 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741974743a2408051.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论