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

Link color issue #248

Open javierencalada opened this issue 13 years ago • 6 comments

Hi, i checked the issue #248 https://github.com/ReduxFramework/ReduxFramework/issues/248 and works fine.

But i cannot set any default color to the fields.

e.g: array( 'id' => 'links_color', 'type' => 'link_color', 'title' => __('Links Color', 'redux-framework-demo'), 'default' => array( 'show_regular' => '#F15F74', 'show_hover' => '#999999', 'show_active' => false ) )

Always default color is white.

There is some way to do this?

Thanks!

javierencalada avatar Nov 14 '13 17:11 javierencalada

To set the default color is just regular, hover, active. See 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(
        //'regular' => '#aaa',
        //'hover' => '#bbb',
        //'active' => '#ccc',
    )
),

Hope that helps!

dovy avatar Nov 15 '13 05:11 dovy

Hi @dovy thie issue sitll exist. I am using 'active' => false but it is still visible.

oztecnic avatar Dec 14 '13 14:12 oztecnic

What version of Redux are you using? I just tried uncommenting active as in the example above and it works without a problem...

dovy avatar Dec 14 '13 15:12 dovy

Hi @dovy

version 3.1.2

oztecnic avatar Dec 14 '13 15:12 oztecnic

Usage

active

oztecnic avatar Dec 14 '13 15:12 oztecnic

The false declarations usually occur outside of the default array, but I've just made it so this will work too. Do a pull from the repo.

dovy avatar Dec 14 '13 15:12 dovy