Configuring your project

How to add kirki to your project.

Configuring Project Add Panels and Sections Controls

The documentation site is currently being rewritten. If you can't find what you're looking for please check the github issues and ask for assistance there until the documentation rewrite is complete.

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 );

Example:

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

Arguments

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 );
Edit this page