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

Slider

Slider controls are numeric fields that allow you to set a minimum value, a maximum value and a step.

Example

new \Kirki\Field\Slider(
	[
		'settings'    => 'slider_setting',
		'label'       => esc_html__( 'This is the label', 'kirki' ),
		'section'     => 'section_id',
		'default'     => 10,
		'choices'     => [
			'min'  => 0,
			'max'  => 100,
			'step' => 1,
		],
	]
);

Last updated on: January 21st, 2022

Scroll to Top

Download

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