Support › General › Color Picker and CSSResolved
Hi, I'm using Bricks and as color picker in Bricks are not yet dynamic, I wanted to get the color picker value into a css class.
What is the best way/best practice to achieve that ?
Thank you for getting in touch.
You can use the code to print the color picker value in Inline CSS. For example:
$value = rwmb_meta( 'color_picker' );
color: <?php echo $value ?>
Hi many thanks for your help
that's what I was trying to do, but without success. I think I was adding the code in the wrong place or Bricks doesn't allow PHP in custom code areas. When added manually it works.
Thanks for confirming the code.