[Plugin: Widget Logic] How to use TTF_Titles styles other than default?
-
This plugin looks like just what I need to customize my widgets with TTF_Titles. However, I can’t seem to get it to use any of my defined TTF titles styles other than the one designated as default. No matter what I put into my functions.php code, the widget titles show up in the default style, not the style I want (“widgettitle”).
Here is the code I’m using in my theme’s functions.php:
function ttftext_widget_title($content='') { preg_match("/<h2[^>]*>([^<]+)/",$content, $matches); $heading=$matches[1]; $insert_img=the_ttftext( $heading, 'widgettitle', false ); $content=preg_replace("/(<h2[^>]*>)[^<]+/","$1$insert_img",$content,1); return $content; }
TIA for any suggestions!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Widget Logic] How to use TTF_Titles styles other than default?’ is closed to new replies.