Home › Forums › ACF PRO › 'no_value_message' filter for flexible content › Reply To: 'no_value_message' filter for flexible content
Thanks for the bug report. I have added this back in (was a mistake to leave it out) and you will find the fix included in the next update.
For now, please modify the pro/fields/flexible-content.php
file on line 210 to:
// no value message
$no_value_message = __('Click the "%s" button below to start creating your layout','acf');
$no_value_message = apply_filters('acf/fields/flexible_content/no_value_message', $no_value_message, $field);
?>
<div <?php acf_esc_attr_e(array( 'class' => 'acf-flexible-content', 'data-min' => $field['min'], 'data-max' => $field['max'] )); ?>>
<div class="no-value-message" <?php if( $field['value'] ){ echo 'style="display:none;"'; } ?>>
<?php printf( $no_value_message, $field['button_label'] ); ?>
</div>
Thanks
E
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.