-
Notifications
You must be signed in to change notification settings - Fork 584
Description
I try this to generate link colors for two array link1 & link2,
I use Below Code...
array(
'id' => 'opt-link-color1',
'type' => 'link_color',
'title' => __('Links Color Option', 'redux-framework-demo'),
'subtitle' => __('Only color validation can be done on this field type', 'redux-framework-demo'),
'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'),
'compiler' => array('.link1', '.link2'),
'visited' => true,
'default' => array(
'regular' => '#1e73be', // blue
'hover' => '#dd3333', // red
'active' => '#8224e3', // purple
'visited' => '#8224e3' // purple
)
),
It outputs
.link1,.link2{color:#ffffff;}
.link1:hover,.link2{color:#ffffff;}
.link1:active,.link2{color:#ffffff;}
.link1:visited,.link2{color:#ffffff;}
hover, active, visited color of another class is missing, I will try it using OUTPUT but it till cant works... Any help?