redux-framework
redux-framework copied to clipboard
Links color issue
Hi!, im testing the next code inside sample-config.php
array(
'id' => 'links_color',
'type' => 'link_color',
'title' => __('Links Color', 'redux-framework-demo'),
'default' => array(
'show_regular' => true,
'show_hover' => true,
'show_active' => true
)
),
But if i change any default to false is still showing.
Another issue, there is no way to set a default color, i have tested this:
array( 'id' => 'links_color', 'type' => 'link_color', 'title' => __('Links Color', 'redux-framework-demo'), 'default' => array( 'show_regular' => '#F15F74', 'show_hover' => '#999999', 'show_active' => false ) ), Thanks!
Give that a try. Let me know if it works. Otherwise I'll do a more extensive check.
Ok, just resolved for real. ;)
Changed the argument names. Please check the sample-config file for details or look here:
<?php
array(
'id'=>'link-color',
'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'),
//'regular' => false, // Disable Regular Color
//'hover' => false, // Disable Hover Color
//'active' => false, // Disable Active Color
'default' => array(
)