Markup

The Markup controller allows users to add a HTML markup in Theme Customizer Sidebar.

Demonstration

 
Handy::control( 'markup', [
    'id'          => 'markup_id',
    'section'     => 'layout_section',
    'priority'    => 1,
    'html'        => '
Markup
' ]);

Parameters

NameDescription
id

string required

The unique slug like string used as an ID and also as an index name in storing data in a database.

section

string required

The ID of the section in which the control will be displayed.

html

string required

The markup's html content or component.

priority

integer optional

The order of control appears in the section. Default 0.

active_callback

callable optional

A callback function that determines the visibility of a control, whether to show or hide depending on a condition. For further details, read active_callback. Default empty.