Configuring your project

How to add Kirki to your project.

Configuring Project Add Panels and Sections Controls

When you create a project in Kirki, the first thing you have to do is create a configuration. Configurations allow each project to use a different setup and act as identifiers so it’s important you create one. Fields that belong to your configuration will inherit your config properties.

Kirki::add_config( $config_id, $args );


Kirki::add_config( 'theme_config_id', array(
	'capability'    => 'edit_theme_options',
	'option_type'   => 'theme_mod',
) );


To create a field that will then use this configuration you can add your fields like this:

Kirki::add_field( 'theme_config_id', $field_args );

Can't find what you're looking for? Check the github issues or edit this page to add what's missing.