Home › Forums › Backend Issues (wp-admin) › Expand Image field to allow mp4 › Reply To: Expand Image field to allow mp4
I resolved this by adding mp4 as a allowed filetype.
You can then filter to show just MP4 as ACF allows you to search by MIME type in the open library windows
The only code amend is to tweak the backend CSS so the box does not collapse to 30px-vs-30px
add_action(‘admin_head’, ‘tweak_acf_custom_field_dimensions’);
function tweak_acf_custom_field_dimensions() {
echo ‘<style>
[data-layout=”FIELDNAME”]
.acf-image-uploader .image-wrap img {
min-width: 150px;
min-height: 150px;
}
</style>’;
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.