Closed sariyanta closed 1 year ago
I'm new to acf-composer (and also php) and enjoy using it.
I'm having difficulties retrieving the data from the 'Supported block features.'
I added 'color' => 'true' to the $supports. The changes is applied in the back-end, but couldn't figure out how to use it in the front end.
'color' => 'true'
$supports
/** * The supported block features. * * @var array */ public $supports = array( 'align' => true, 'align_text' => false, 'align_content' => false, 'full_height' => false, 'anchor' => false, 'mode' => false, 'multiple' => true, 'jsx' => true, 'color' => true, );
Any pointer would be appreciated.
Desar
In the blade file I am able to use $block->block->textColor and $block->block->backgroundColor
$block->block->textColor
$block->block->backgroundColor
Perfect! This works! Thank you @rleecrewmp !
I'm new to acf-composer (and also php) and enjoy using it.
I'm having difficulties retrieving the data from the 'Supported block features.'
I added
'color' => 'true'
to the$supports
. The changes is applied in the back-end, but couldn't figure out how to use it in the front end.Any pointer would be appreciated.
Desar