Last active
May 27, 2017 16:15
-
-
Save Jespertastesen/6f6f0deb242b5e77541d27c9d84b3824 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function themedemo_customize($wp_customize) | |
{ | |
$wp_customize->add_section( 'themedemo_demo_settings', array( | |
'title' => 'Indstillinger', | |
'priority' => 35, | |
) ); | |
$wp_customize->add_setting( 'headline-1', array( | |
'default' => 'default_value', | |
) ); | |
$wp_customize->add_control( 'headline-1', array( | |
'label' => 'Header line 1', | |
'section' => 'themedemo_demo_settings', | |
'type' => 'text', | |
) ); | |
} | |
<?php echo get_theme_mod( 'headline-1', 'default_value' ); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment