functions.php
/*
 * Change Widgets Title Tags for SEO
 */
Change Widgets Title Tags for SEO
Change Widgets Title Tags for SEO
function kaira_change_widget_titles( array $params ) {
	$widget_title_tag = get_theme_mod( 'vogue-seo-widget-title-tag', customizer_library_get_default( 'vogue-seo-widget-title-tag' ) );
    $widget =& $params[0];
    $widget['before_title'] = '<h'.esc_attr( $widget_title_tag ).' class="widget-title">';
    $widget['after_title'] = '</h'.esc_attr( $widget_title_tag ).'>';
    return $params;
}
function kaira_change_widget_titles ( array $ params ) { $ widget_title_tag = get_theme_mod ( 'vogue-seo-widget-title-tag' , customizer_library_get_default ( 'vogue-seo-widget-title-tag' ) ) ; $ widget = & $ params [ 0 ] ; $ widget [ 'before_title' ] = '<h' . esc_attr ( $ widget_title_tag ) . ' class="widget-title">' ; $ widget [ 'after_title' ] = '</h' . esc_attr ( $ widget_title_tag ) . '>' ; return $ params ; }
Change Widgets Title Tags for SEO
Change Widgets Title Tags for SEO