redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Output the color gradient option

Open genethic opened this issue 12 years ago • 4 comments

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?

genethic avatar Mar 02 '14 17:03 genethic

color_gradient has no output or css compiler options.

kprovance avatar Mar 02 '14 17:03 kprovance

ok, thanks!

genethic avatar Mar 02 '14 17:03 genethic

how do you use color_gradient in front end php?

zerocool1 avatar Mar 11 '14 01:03 zerocool1

@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

kprovance avatar Mar 11 '14 03:03 kprovance