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

Links color issue

Open javierencalada opened this issue 13 years ago • 2 comments

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!

javierencalada avatar Nov 13 '13 18:11 javierencalada

Give that a try. Let me know if it works. Otherwise I'll do a more extensive check.

dovy avatar Nov 14 '13 04:11 dovy

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(
    )

dovy avatar Nov 14 '13 16:11 dovy