Controls
Units
Units control is used to store a numeric quantity as well as a unit (e.g. px
, %
, etc...) for the block. See examples below to use this control.
Control Settings
- Units – collection of available units to display in control
Usage
PHP
<p>
Your unit is:
<?php echo $attributes['control_name']; ?>
</p>
Handlebars
<p>
Your unit is:
{{control_name}}
</p>
Post Meta
<p>
Your unit is:
<?php echo get_lzb_meta( 'control_meta_name' ); ?>
</p>