'',
'width' => '1600',
'height' => '600',
'flex-height' => false,
'flex-width' => false,
'header-text' => true,
'default-text-color' => '#fff'
);
add_theme_support( 'custom-header', $args );
}
add_action( 'after_setup_theme', 'ancnews_theme_setup' );
function ancnews_remove_some_widgets(){
// Unregister Frontpage sidebar
unregister_sidebar( 'front-page-sidebar' );
}
add_action( 'widgets_init', 'ancnews_remove_some_widgets', 11 );
function ancnews_menu(){ ?>
add_setting('ancnews_title_font_size',
array(
'default' => 50,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint',
)
);
$wp_customize->add_control('ancnews_title_font_size',
array(
'label' => esc_html__('Site Title Size', 'anc-news'),
'section' => 'title_tagline',
'type' => 'number',
'priority' => 50,
)
);
$wp_customize->add_setting('ancnews_header_overlay_size',
array(
'default' => 200,
'sanitize_callback' => 'absint',
)
);
$wp_customize->add_control('ancnews_header_overlay_size',
array(
'label' => esc_html__('Height', 'anc-news'),
'section' => 'header_image',
'type' => 'number',
'priority' => 100,
)
);
/*--- Get Site info control ---*/
$wp_customize->get_control( 'header_textcolor')->section = 'title_tagline';
$wp_customize->remove_control('fameup_title_font_size');
$wp_customize->remove_control('fameup_header_overlay_size');
}
add_action('customize_register','ancnews_theme_option');
if ( ! function_exists( 'fameup_custom_js' ) ) :
add_action( 'wp_footer', 'anc_news_remmove_script', 11 );
function anc_news_remmove_script()
{
wp_dequeue_script( 'fameup-custom-time' );
}
endif;