Kriuchko
4/17/2019 - 12:31 PM

Theme options examples


\!h Text

schema.json
{ "type": "text", "label": "SSL Common Name", "force_reload": true, "id": "geotrust_ssl_common_name" }

config.json
"geotrust_ssl_common_name": ""

\!h Checkbox

schema.json
{"type": "checkbox", "label": "Show filters sidebar", "force_reload": true, "id": "show_cat_sidebar"}

config.json
"show_cat_sidebar": true

\!h Select

schema.json
{
    "type":"select",
    "label":"Number of latest posts",
    "id":"homepage_blog_posts_count",
    "force_reload": true,
    "options":
    [
        {
            "value": 0, "label": "Disable"
        },
        {
            "value": 1, "label": "1"
        },
        {
            "value": 2, "label": "2"
        },
        {
            "value": 3, "label": "3"
        }
    ]
}

config.json
"homepage_blog_posts_count": 2
    
{{theme_settings.homepage_blog_posts_count}}