[Smart Custom Fields]管理画面上の画像の表示サイズを変更する方法

WordPress
スポンサーリンク

目次

functions.php

function add_admin_style() {
	if ( in_array( get_post_type(),
		array(
		'カスタム投稿名',
		)
	)){
       echo '
       <style>
	   .smart-cf-upload-image	{max-width:250px;height:auto}
       </style>';
    }
}
add_action("admin_head", "add_admin_style",1);

コメント

タイトルとURLをコピーしました