urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $get_fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' ); return esc_url($get_fonts_url); } function heropress_scripts_styles() { wp_enqueue_style( 'heropress-fonts', heropress_google_font(), array(), null ); } add_action( 'wp_enqueue_scripts', 'heropress_scripts_styles' ); /** * Remove Customize Panel from parent theme */ function heropress_remove_parent_setting( $wp_customize ) { $wp_customize->remove_panel('features_panel'); $wp_customize->remove_panel('portfolio_panel'); $wp_customize->remove_control('slider-page2'); $wp_customize->remove_control('slider-page3'); $wp_customize->remove_control('call_action_button_target'); } add_action( 'customize_register', 'heropress_remove_parent_setting',99 ); /** * Remove Parent theme widgets */ function heropress_remove_widgets(){ unregister_sidebar( 'specia_feature_widget' ); } add_action( 'widgets_init', 'heropress_remove_widgets', 11 ); /** * Add WooCommerce Cart Icon With Cart Count */ function heropress_add_to_cart_fragment( $fragments ) { ob_start(); $count = WC()->cart->cart_contents_count; ?> 0 ) { ?> 0