From the theme customization guide , it seems you just need to include certain tags in the theme, and they will appear in the Customize panel userβs.
By including custom metatext tags in your topic, users can easily customize the text variables that you define. This is useful for customizing text or customizing widgets that require information from the user.
Example
<html> <head> <meta name="text:Flickr Username" content=""/> </head> <body> {block:IfFlickrUsername} <div id="flickr_widget"> <script type="text/javascript" src="http://flickr.com/widget?user={text:Flickr Username}"> </script> </div> {/block:IfFlickrUsername} </body> </html>
From the above example, it looks like {text:Flickr Username} means that the user-configurable input field should be text input and have the label "Flickr username", then in the {block} tags you should use the label without spaces, as your variable name .
source share