In this article, we go through examples of using custom theme settings.
Implementing a selection list (<select>)
In this example, a select list type setting is used to determine the font of <h1>-level headings.
Now, in the theme settings menu, there is a new Main heading font named <select> menu, from which you can choose a font for <h1> headings.
Implementing a number selection
In this example we implement a number field that allows the theme user to set a general default font size for all text (for the <body> element):
Now, in the theme settings menu, there is a new Main heading font dropdown list, from which you can choose a font for <h1> headings.
Implementing a color specification
In this example, you add a color selection field to theme settings that specifies the text color of the <p> elements:
Now the theme settings have a new Primary color setting, where the color chosen by the user acts as the color of the text pieces.
