Launch Offer – Kirki PRO is now available! 🚀Get it while it lasts!

Panels & Sections

Adding Panels

Panels are wrappers for sections – a way to group multiple sections together. To see how to create Panels using the WordPress Customizer API please take a look at these docs.

Adding Panels in Kirki:

new \Kirki\Panel(
	'panel_id',
	[
		'priority'    => 10,
		'title'       => esc_html__( 'My Panel', 'kirki' ),
		'description' => esc_html__( 'My Panel Description.', 'kirki' ),
	]
);

Adding Sections

Sections are wrappers for controls – a way to group multiple controls together. All fields must belong to a section. To see how to create Sections using the WordPress Customizer API please take a look at these docs.

Adding Sections in Kirki:

new \Kirki\Section(
	'section_id',
	[
		'title'       => esc_html__( 'My Section', 'kirki' ),
		'description' => esc_html__( 'My Section Description.', 'kirki' ),
		'panel'       => 'panel_id',
		'priority'    => 160,
	]
);

Last updated on: January 20th, 2022

Scroll to Top

Download

Subscribe & be the first to be informed about
new features & updates!