• Hey, I’m working on a theme for WP version 3.3 and I’m working with a theme options. And I want the user to be able to use custom logo. My code in the theme options for this is:

    $shortname = "nt";

    array( "name" => "Logo",
    	"desc" => "Custom Logo",
    	"id" => $shortname."_custom_logo",
    	"type" => "text",
    	"std" => "<?php bloginfo('template_directory'); ?>/images/green/logo.png"),

    And this is how I call it this way:

    <div id="header">
            <a href="<? bloginfo('url') ?>"><img src="<? echo get_option('nt_custom_logo'); ?>" /></a>
    	</div>

    But it doesn’t works. It give me this:

    <div id="header">
            <a href="https://andorkh.com/lifeline"><img src="" /></a>
    	</div>

    Any idea or suggestions what could be the problem or what I’m making wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘bloginfo('template_directory') Isn't working.’ is closed to new replies.