Support » Themes and Templates » Header picture becomes image.htm

  • Hello!

    For some reason this code will now not give the right endning (.jpg) to the image. The image should be header-2.jpg, but the ending becomes .htm (

    What have I done wrong?

    Here´s the code I´ve got in the header.

    <a href="<?php bloginfo('url'); ?>">
      <img src="<?php echo get_template_directory_uri() ?>/img/header-2.jpg" alt="" title="" width="" height="" />

    My page

    Thanx in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Andrew Nevins


    Forum moderator

    but the ending becomes .htm (

    Where are you seeing this?

    With Firebug it showed.

    I think I got it fixed. The code in the header had changed back to get_template_directory_uri() instead of get_stylesheet_directory_uri(). Have to look this up later today!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Header picture becomes image.htm’ is closed to new replies.