• Resolved obrienkev

    (@obrienkev)


    Hi,

    I have code in my index.php as below. Why does the image not show up? Is my code wrong? Thanks!

    <?php bloginfo(‘template_directory’); ?>images/signUpBtn.jpg” alt=”Sign Up to our newsletter” width=”101″ height=”18″ />

Viewing 2 replies - 1 through 2 (of 2 total)
  • Syntax error.

    This:

    <?php bloginfo('template_directory'); ?>images/signUpBtn.jpg

    Should be this:

    <?php bloginfo('template_directory'); ?>/images/signUpBtn.jpg

    (Note the trailing slash after <?php bloginfo('template_directory'); ?>)

    p.s. you should use get_template_directory_uri() here instead of bloginfo( 'template_directory' )

    Thread Starter obrienkev

    (@obrienkev)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme Images’ is closed to new replies.