• 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)
  • Thread Starter jheikes

    (@jheikes)

    Figured it out – call to ttftext needed to be changed to
    $insert_img=the_ttftext( $heading, $echo=true, $style="widgettitle", $overrides="");

    I may be using an old version of ttf_titles; however, it works!

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.