function theme_customizer_function($wp_customize) { $wp_customize->add_panel('theme_options', array( 'title' => 'Theme Options', 'priority' => 10, 'capability' => 'edit_theme_options', )); $wp_customize->add_section('landing_page_slider', array( 'title' => 'Slider Section', 'description' => __('Home Page Slider Customization'), 'panel' => 'theme_options', )); $wp_customize->add_setting('landing_main_heading', array( 'default' => __('Some Text Here') )); $wp_customize->add_control('landing_main_heading', array( 'label' => 'Main Heading', 'section' => 'landing_page_slider', 'priority' => 1 )); } add_action('customize_register', 'theme_customizer_function');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter