Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28632

    Gday Kriesi

    Is there a way to get php to work in the Theme Options fields?

    eg. in the footer field, I tried without success:

    © 2007 - <?php echo date("Y"); ?>Copyright Client Name here [nolink]

    Thanks for any help you can provide for this

    #138151

    Hi itchybrain,

    No, but you can just edit the footer.php and add in the php directly.

    Regards,

    Devin

    #138152

    OK, thanks for your help with that Devin. Is there any documentation yet about how to inject the code with action hooks via functions.php rather than editing the footer.php directly?

    This would make updates so much better.

    cheers

    Darryl

    #138153

    Hey,

    You can use something like this on your functions.php:

    add_filter( 'kriesi_backlink', 'new_backlink');
    function new_backlink ($content) {
    return " - <a href='http://www.yourownurlhere.at'>Custom Text Here.</a>";
    }

    Regards,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding php to the Theme Options’ is closed to new replies.