Support

Account

Home Forums General Issues Color Picker check for value Reply To: Color Picker check for value

  • because $cssstyle = a color value and not a field name

    
    <?php
    	$cssstyle = get_field ('bm_fundo_cor');
    	if ( $cssstyle != "" ) {
    ?>
    	<style type="text/css">
    		body {
    		    background-color: <?php echo $cssstyle; ?> !important;
    		}
    	</style>
    <?php } ?>