The "upload" control

Learn how to create controls using Kirki

Back to 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.

The upload control is identical to the image control, the only difference is that it allows uploading more file types and not only images.


$file_url = get_theme_mod( 'my_setting', '' );
printf( esc_attr__( 'URL of uploaded file: %s', 'textdomain' ), $file_url );
Edit this page