Support

Account

Home Forums ACF PRO 'no_value_message' filter for flexible content Reply To: 'no_value_message' filter for flexible content

  • Hi @jeroenreumkens

    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