目次
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);
コメント