kirki icon indicating copy to clipboard operation
kirki copied to clipboard

Active callback for selected preview device?

Open reefki opened this issue 6 years ago • 3 comments

I don't know if it already exists or has been requested previously, but it would be nice if we can show/hide controls based on the selected customizer preview device.

Screen Shot 2019-03-28 at 05 26 48

Maybe using the following syntax:

'active_callback' => array(
    array(
        'setting' => 'preview_device',
        'operator' => '==',
        'value' => 'desktop', // 'desktop', 'tablet' or 'mobile'
    ),
),

I think it would be useful if we want to have a different spacing fields for each screen.

reefki avatar Mar 27 '19 22:03 reefki

Already planned after 4.0 :+1:

aristath avatar Mar 27 '19 22:03 aristath

Perfect! Can't wait to see that implemented.

reefki avatar Mar 27 '19 23:03 reefki

Hi, is there any change on this issue?

mihdan avatar Jun 23 '23 15:06 mihdan