WordPress.org

Ready to get started?Download WordPress

Forums

BlankSlate
[resolved] get_template_directory_uri() not working (3 posts)

  1. cluesew
    Member
    Posted 7 months ago #

    When I try to use either:
    <img src="<?php bloginfo( 'template_directory' ); ?>/assets/somepicture.jpg">
    or
    <img src="<?php echo get_template_directory_uri(); ?>/assets/somepicture.jpg" >

    The theme outputs the HTML like this:
    <img somepicture.jpg"="" assets="" gregharrisestates="" themes="" wp-content="" ghe="" test="" fixxed.com="" src"http:="">

    I have deactivated all plugins and installed clean/untouched blankslate and the results are the same.

    Any insight to this issue? Thank you.

  2. TidyThemes
    Member
    Theme Author

    Posted 7 months ago #

    Please use the official forum:

    http://tidythemes.com/forum/

    Thanks

  3. cluesew
    Member
    Posted 7 months ago #

    Thanks, I will in the future. There is no need for this issue. It appears that I left out the all important "=" after src.

Reply

You must log in to post.

About this Theme

About this Topic