[Plugin: Widget Logic] Using with TTFtitles
-
I’m interested in setting up TTFtitles to work with renaming my widget titles, but I’m confused about where I need to makes edits in my code to accommodate this:
I added this filter in order to render all widget titles with the excellent [ttftext plugin](https://templature.com/2007/10/18/ttftitles-wordpress-plugin/) like this:
function ttftext_widget_title($content='', $widget_id='') { preg_match("/<h2[^>]*>([^<]+)/",$content, $matches)) $heading=$matches[1]; $insert_img=the_ttftext( $heading, false ); $content=preg_replace("/(<h2[^>]*>)[^<]+/","$1$insert_img",$content,1); return $content; }
Where would I need to put this code? What changes do I need to make to it? And what additional code (and core page edits) would I need to make?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Widget Logic] Using with TTFtitles’ is closed to new replies.