WordPress.org

Ready to get started?Download WordPress

Forums

Header picture becomes image.htm (3 posts)

  1. doggyus
    Member
    Posted 8 months ago #

    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 (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="" />
    </a>

    My page

    Thanx in advance!

  2. Andrew
    Forum Moderator
    Posted 8 months ago #

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

    Where are you seeing this?

  3. doggyus
    Member
    Posted 8 months 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!

Reply

You must log in to post.

About this Topic

Tags

No tags yet.