Skip to content
Block Controls

Email

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

Email Control

Control Settings

  • Placeholder (placeholder) - text displayed when the value is empty. Empty by default
  • Characters Limit (characters_limit) - the maxlength put on the input, from 0 to 524288. Empty by default, which is 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?

Copyright © 2026 Lazy Blocks.