Home › Forums › Add-ons › Gallery Field › How to set Gallery Field height? › Reply To: How to set Gallery Field height?
Perhaps something like the code below (change the ID)…
Note: you can target it using a Field Key or custom CSS ID
<?php
/* START: Changes height of Gallery Field */
function my_change_gallery_field_height() {
?>
<style type="text/css">
#acf-field_59aefd2fd922c {
height: 210px;
}
</style>
<?php
}
add_action('acf/input/admin_head', 'my_change_gallery_field_height');
/* END: Changes height of Gallery Field */
?>
Let me know if that does it for you, and kindly mark as resolved if so!
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.