tag. */ do_action('wp_body_open'); } } add_action('after_setup_theme', 'honeywaves_setup'); function honeywaves_sanitize_checkbox($checked) { // Boolean check. return ( ( isset($checked) && true == $checked ) ? true : false ); } function honeywaves_sanitize_text($input) { return wp_kses_post(force_balance_tags($input)); } function honeywaves_setup() { load_theme_textdomain('honeywaves', HONEYWAVES_CHILD_TEMPLATE_DIR . '/languages'); require( HONEYWAVES_CHILD_TEMPLATE_DIR . '/inc/customizer/customizer_theme_style.php'); require( HONEYWAVES_CHILD_TEMPLATE_DIR . '/functions/widgets/sidebars.php'); require( HONEYWAVES_CHILD_TEMPLATE_DIR . '/functions/widgets/wdl_social_icon.php'); require( HONEYWAVES_CHILD_TEMPLATE_DIR . '/functions/widgets/wdl_topbar_info.php'); } add_action('wp_enqueue_scripts', 'honeywaves_enqueue_styles'); function honeywaves_enqueue_styles() { if (get_theme_mod('custom_color_enable') == true) { honeywaves_custom_light(); } wp_enqueue_style('honeywaves-parent-style', HONEYWAVES_PARENT_TEMPLATE_DIR_URI . '/style.css', array('bootstrap')); wp_enqueue_style('honeywaves-default-style', HONEYWAVES_TEMPLATE_DIR_URI . '/assets/css/default.css'); } if (is_admin()) { require get_stylesheet_directory() . '/admin/admin-init.php'; } function honeywaves_custom_light() { $honeywaves_link_color = get_theme_mod('link_color'); list($r, $g, $b) = sscanf($honeywaves_link_color, "#%02x%02x%02x"); $r = $r - 50; $g = $g - 25; $b = $b - 40; if ($honeywaves_link_color != '#ff0000') : ?> 100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ); add_theme_support( 'custom-logo', $defaults ); } add_action( 'after_setup_theme', 'honeywaves_custom_logo_setup' ,11); //Remove Footer section function honeywaves_remove_customize_register( $wp_customize ) { $wp_customize->remove_section( 'footer_section'); } add_action( 'customize_register', 'honeywaves_remove_customize_register',11); //Remove parent topbar header widgets function honeywaves_remove_widget() { unregister_widget('honeypress_social_icon_widget'); unregister_widget('honeypress_header_topbar_info_widget'); } add_action( 'widgets_init', 'honeywaves_remove_widget', 11 );