Skip to content
Controls

Email

Email control allows you to add and validate email addresses in your blocks.

Email Control

Control Settings

  • Placeholder - Text displayed when the value is empty
  • Characters Limit - Maximum number of characters allowed (leave blank for no limit)

Usage

PHP
<p>
  <a href="mailto:<?php echo esc_attr( $attributes['control_name'] ); ?>">
    Contact us
  </a>
</p>
Handlebars
<p>
  <a href="mailto:{{control_name}}">
    Contact us
  </a>
</p>
Post Meta
<p>
  <a href="mailto:<?php echo esc_attr( get_lzb_meta( 'control_meta_name' ) ); ?>">
    Contact us
  </a>
</p>

Was this article helpful?