Header picture becomes image.htm (3 posts)

  1. doggyus
    Posted 2 years ago #


    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 (blueChalo.com-1-filer/header-2.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!

  2. Andrew Nevins
    Forum moderator
    Posted 2 years ago #

    but the ending becomes .htm (blueChalo.com-1-filer/header-2.htm).

    Where are you seeing this?

  3. doggyus
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.