kirki
kirki copied to clipboard
Active callback for selected preview device?
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.

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.
Already planned after 4.0 :+1:
Perfect! Can't wait to see that implemented.
Hi, is there any change on this issue?