initial upload
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
add_action( 'customize_register', 'zeitfresser_show_hide_site_title' );
|
||||
function zeitfresser_show_hide_site_title( $wp_customize ) {
|
||||
|
||||
$wp_customize->add_setting( 'show_hide_site_title', array(
|
||||
'sanitize_callback' => 'zeitfresser_sanitize_checkbox',
|
||||
'default' => zeitfresser_get_default_site_title_show_hide(),
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( new Graphthemes_Toggle_Control( $wp_customize, 'show_hide_site_title', array(
|
||||
'label' => esc_html__( 'Show/Hide Site Title','zeitfresser' ),
|
||||
'section' => 'title_tagline',
|
||||
'settings' => 'show_hide_site_title',
|
||||
'type'=> 'toggle',
|
||||
) ) );
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user