WordPress.org

Ready to get started?Download WordPress

Forums

MAKE AN IMAGE A LINK (5 posts)

  1. issieparis
    Member
    Posted 4 years ago #

    hi im trying to make an image a link to an external page. I know how to make it in dreamweaver, so im wondering if the code to do it at wordpress would be similar.
    Or i accept ideas of how to make.
    Really i just want a logo to be a link to an external page, list in the links category...
    help

  2. EMG
    Forum Volunteer
    Posted 4 years ago #

    Links are links, even in WordPress. :)

    <a href="someexternalURLhere">Here is a link!</a>

  3. issieparis
    Member
    Posted 4 years ago #

    yeah but how do i put it in the image??

  4. EMG
    Forum Volunteer
    Posted 4 years ago #

    Sorry for missing the part about the images.

    That depends on where your images are located. If they are located in an images folder in your theme, then:

    <a href="someURLhere"><a href="<?php bloginfo('template_directory'); ?>/images/blah.png" alt="" title="" /></a>

    That - or an altered version of that - would work. :)

  5. issieparis
    Member
    Posted 4 years ago #

    actually i want to put it in the left column, and the image its in the server in themes content

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.