Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Okay.. hopefully this will be the last time I have to post with a problem, lol. Here is what I have in my functions.php file. FINALLY I am not getting any errors, but the widgets are still in text format.

    Where/how do I tell the widget titles to display as a specific TTFTitle? Like… if my font style is called “Honey” how do I make the widget titles display in that font? THANKS!!

    ‘<?php
    add_filter(‘the_ttftext’, ‘ttftext_widget_title’, 2);
    ?>

    <?php
    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;
    }
    ?>’

    Alan,

    Thank you for replying. I am still just so confused! Maybe I’m making this harder than it should be. Is there anyway you can give me the exact code that I should use? Including the < ? php and everything? I have tried and tried to get it to work but it always messes up my functions.php page and I have to re-upload it.

    Thank you!

    alanft,

    I am putting this post in the functions.php page. Thank you!

    I have been trying to use Widget Logic to use the TTF Titles plug in for my Widget titles. The function code for the ttftitles returns tons of errors. The most common one is an “unexpected $end error” I don’t know if I am not doing it right or what. I copied and pasted this code:

    function ttftext_widget_title($content=”, $widget_id=”)
    { preg_match(”/]*>([^<]+)/”,$content, $matches);
    $heading=$matches[1];
    $insert_img=the_ttftext( $heading, false );
    $content=preg_replace(”/(]*>)[^<]+/”,”$1$insert_img”,$content,1);
    return $content;
    }

    I am no PHP expert so is there any way you can give details on what to do with it and what changes to what and what closes it, etc? Thank you!

    Thread Starter khoward87

    (@khoward87)

    I just wanted to bump this question in case someone who knows the answer may be online right now. I know this can be done as I have seen it on a few blogs, but I can not find any documentation on how to do it.

    TIA!

    Thread Starter khoward87

    (@khoward87)

    I’m talking about the TTFTitles plugin:
    https://www.ads-software.com/extend/plugins/ttftitles/

    Thank you for responding though ??

    Thread Starter khoward87

    (@khoward87)

    ANYONE? I still haven’t been able to retrieve it. PLEASE PLEASE HELP!

    Thread Starter khoward87

    (@khoward87)

    OH – and just to add… it is not in my Inbox or Spam folder.

Viewing 8 replies - 1 through 8 (of 8 total)