Often for visual or SEO reasons we want to change the title of our widget blocks. It makes it very easy!
Add the code below to your theme’s functions.php file.
function vchitel_custom_widget_title_tag( $params ) { $params[0]['before_title'] = '<div class="widget-title">' ; $params[0]['after_title'] = '</div>' ; return $params; } add_filter( 'dynamic_sidebar_params' , 'vchitel_custom_widget_title_tagg' );