Forums

[resolved] bloginfo('template_directory') doesn't work ? (2 posts)

  1. navets-stevan
    Member
    Posted 1 year ago #

    this is my code

    <img class="main" src=<?php bloginfo('template_directory'); ?>"images/main.jpg" />

    When i view source it pointed out to the right directory.

    <img src="http://localhost/wordpress/wp-content/themes/coffeetree/images/main.jpg"

    but the image didn't appear ? really confused .. i have been using the bloginfo for my other themes , but didn't work this time ..

    Really confused now , your help will be much appreciated , anyone ?

  2. navets-stevan
    Member
    Posted 1 year ago #

    really sorry everyhone forget to chmod .. in my own webserver ... newbie mistake , really sorry again ..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags