Lego2012
12/13/2016 - 3:51 PM

Line breaks in widget titles

Line breaks in widget titles

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Line breaks in widget titles using [br]
add_filter( 'widget_title', 'sk_br_widget_title' );
function sk_br_widget_title( $title ) {
   $title = str_replace( "[br]", "<br/>", $title );
   return $title;
}