I am trying to add a button in the theme customizer but can't get it to work. So far I created a panel then it shows a partial button but ideally I would like to just have a normal blue WordPress style button at the bottom under the last panel "Additional CSS". Any help is appreciated.
function prefix_customizer_register( $wp_customize ) { $wp_customize->add_panel( 'panel_id', array( 'priority' => 300, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __( 'Next Step', 'textdomain' ), 'description' => __( 'This is the next step.', 'textdomain' ), ) ); $wp_customize->add_section( 'section_id', array( 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __( 'Edit Pages', 'textdomain' ), 'description' => '', 'panel' => 'panel_id', ) ); $wp_customize->add_setting( 'url_field_id', array( 'default' => '', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => '', 'sanitize_callback' => 'esc_url', ) ); $wp_customize->add_control( 'button_id', array( 'type' => 'button', 'priority' => 10, 'section' => 'section_id', 'label' => __( 'Edit Pages', 'textdomain' ), 'description' => '', ) ); } add_action( 'customize_register', 'prefix_customizer_register' ); 