We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
When css_format is set you must set selectorto make it works.
css_format
selector
By default all field can use css_format as a string:
'css_format' => 'font-size: {{value}}'
If device_settings is true css_format will be an array:
device_settings
true
'css_format' => array( 'desktop' => 'font-size: {{value}}', 'tablet' => 'font-size: {{value}}', 'mobile' => 'font-size: {{value}}', )
The key is device name.
'css_format' => array( 'top' => 'padding-top: {{value}}', 'right' => 'padding-right: {{value}}', 'bottom' => 'padding-bottom: {{value}}', 'left' => 'padding-left: {{value}}', )
If device_settings is true css_format will still look like a above no need key settings for each device.
Just use 'css_format' => 'typography', for this field.
'css_format' => 'typography',
Just use 'css_format' => 'background', for this field.
'css_format' => 'background',
This type use for live view only. If you want to add class outside of WP customizer to HTML element you must add it by PHP code
Just use 'css_format' => 'html_class', for this field.
'css_format' => 'html_class',
NOTE: if device_settings is true the class name will be {device}--{value}, example: desktop--className
{device}--{value}
desktop--className