[ Close ] Learn more about our custom WordPress development services at htmlBurger

Documentation

Documentation > Fields > Html

HTML

Render custom HTML markup.

Setup methods

set_html($html)

Set the HTML markup you would like to show to $html.

Field::make("html", "crb_information_text")
    ->set_html('<h2>Lorem ipsum</h2><p>Quisque mattis ligula.</p>')

Excited about Carbon Fields? Spread the word!