redux-framework
redux-framework copied to clipboard
Output the color gradient option
I have this:
array(
'id' => 'secondary',
'type' => 'color_gradient',
'title' => __('Secondary Color Option', 'redux-framework-demo'),
'output' => '.bg-dark',
'default' => array('from' => '#181921', 'to' => '#272835'),
),
But this doesn't work. How can I output it?
color_gradient has no output or css compiler options.
ok, thanks!
how do you use color_gradient in front end php?
@zerocool1 - In the future, please open your own ticket.
Basically, it would be your opt_name, the field name and either [from] or [to]. For example (and please, replace redux_demo and opt-color-gradient with your own values. Cutting and pasting this example will NOT work)
global $redux_demo
$redux_demo['opt-color-gradient']['from']; // First colour
$redux_demo['opt-color-gradient']['to']; // Second colour