WordPress.org

Ready to get started?Download WordPress

Forums

PHP-using php-widget _ code not working (2 posts)

  1. VengeanceFury
    Member
    Posted 6 years ago #

    I have the php widget similar to the text widget in which i want to display an image that is also a hyperlink... i have this code and it will show the size of the image for one second upon loading, then as if not finding it collapses the widget.

    <p><a href="http://www.sandmangourmet.com/">
    <img border="0" src=<?php bloginfo('template_directory'); ?>/images/sandman.jpg" width="152" height="152"></a></p>

    is this wrong? i cannot figure out why it would not find the image. I have almost the same code in my header but for a different image. Any thoughts? Thanks for any help.

  2. iridiax
    Member
    Posted 6 years ago #

    You have code errors. You need " after src= and /> (not >) to close the image tag.

Topic Closed

This topic has been closed to new replies.

About this Topic