public_html/wp-content/themes/LocalTwo/inc/extras.php
/**
 * ============================================================================
 * Enable HTML code in WordPress Widget Titles
 * ============================================================================
 *
 */
Enable HTML code in WordPress Widget Titles
Enable HTML code in WordPress Widget Titles
function html_widget_title( $title ) {
	$title = str_replace( '[', '<', $title );
	$title = str_replace( '[/', '</', $title );
	$title = str_replace( 'strong]', 'strong>', $title );
	$title = str_replace( 'b]', 'b>', $title );
	$title = str_replace( 'em]', 'em>', $title );
	$title = str_replace( 'i]', 'i>', $title );
	$title = str_replace( '<u]', '<span style="text-decoration:underline;">', $title );
	$title = str_replace( '</u]', '</span>', $title );
	$title = str_replace( 'sup]', 'sup>', $title );
	$title = str_replace( 'sub]', 'sub>', $title );
	$title = str_replace( 'del]', 'del>', $title );  is like strike except it is not deprecated, but strike has wider browser support -- you might want to replace the following 'strike' section to replace all with 'del' instead
	$title = str_replace( 'strike]', 'strike>', $title );
	$title = str_replace( 's]', 'strike>', $title ); 
	$title = str_replace( 'strikethrough]', 'strike>', $title ); 
	$title = str_replace( 'tt]', 'tt>', $title ); 
	$title = str_replace( 'marquee]', 'marquee>', $title );
	$title = str_replace( 'blink]', 'blink>', $title ); 
	$title = str_replace( '<wtitle1]', '<span class="wtitle1">', $title );
	$title = str_replace( '</wtitle1]', '</span>', $title );
	$title = str_replace( '<wtitle2]', '<span class="wtitle2">', $title );
	$title = str_replace( '</wtitle2]', '</span>', $title );
	return $title;
}
function html_widget_title ( $ title ) { $ title = str_replace ( '[' , '<' , $ title ) ; $ title = str_replace ( '[/' , '</' , $ title ) ; $ title = str_replace ( 'strong]' , 'strong>' , $ title ) ; $ title = str_replace ( 'b]' , 'b>' , $ title ) ; $ title = str_replace ( 'em]' , 'em>' , $ title ) ; $ title = str_replace ( 'i]' , 'i>' , $ title ) ; $ title = str_replace ( '<u]' , '<span style="text-decoration:underline;">' , $ title ) ; $ title = str_replace ( '</u]' , '</span>' , $ title ) ; $ title = str_replace ( 'sup]' , 'sup>' , $ title ) ; $ title = str_replace ( 'sub]' , 'sub>' , $ title ) ; $ title = str_replace ( 'del]' , 'del>' , $ title ) ; $ title = str_replace ( 'strike]' , 'strike>' , $ title ) ; $ title = str_replace ( 's]' , 'strike>' , $ title ) ; $ title = str_replace ( 'strikethrough]' , 'strike>' , $ title ) ; $ title = str_replace ( 'tt]' , 'tt>' , $ title ) ; $ title = str_replace ( 'marquee]' , 'marquee>' , $ title ) ; $ title = str_replace ( 'blink]' , 'blink>' , $ title ) ; $ title = str_replace ( '<wtitle1]' , '<span class="wtitle1">' , $ title ) ; $ title = str_replace ( '</wtitle1]' , '</span>' , $ title ) ; $ title = str_replace ( '<wtitle2]' , '<span class="wtitle2">' , $ title ) ; $ title = str_replace ( '</wtitle2]' , '</span>' , $ title ) ; return $ title ; }
Enable HTML code in WordPress Widget Titles
Enable HTML code in WordPress Widget Titles
//HTML tag opening/closing brackets // bold -- changed from 's' to 'strong' because of strikethrough code // italic // underline // $title = str_replace( 'u]', 'u>', $title ); // could use this, but it is deprecated so use the following instead // superscript // subscript // del // del is like strike except it is not deprecated, but strike has wider browser support -- you might want to replace the following 'strike' section to replace all with 'del' instead // strikethrough or <s></s> // <s></s> was deprecated earlier than so we will convert it // just in case you forget that it is 'strike', not 'strikethrough' // tt // Will not look different in some themes, like Twenty Eleven -- FYI: http://reference.sitepoint.com/html/tt // marquee // blink // only Firefox and Opera support this tag // wtitle1 (to be styled in style.css using .wtitle1 class) // wtitle2 (to be styled in style.css using .wtitle2 class)