Linking a picture to a page.

  • Author
    Posts
  • #116698

    weirdscience
    Member

    Right now, I have a few pictures in my sidebars. They are in thumbnail size and can be clicked to reveal the larger picture. Instead, I would like to link them so they direct to my ‘about’ page. I did some searches and didn’t find anything, but maybe I’m not using the right lingo for the searches..hehe. Is there a way to accomplish this? Thank you-es ;)

    #116991

    timethief
    Member

    This is the url for your About page http://weirdscience.ca/about/
    This is the format you use:

    Edit: I’m having trouble posting the code format but devblog has done so for your below.

    #116992

    devblog
    Member

    You just want them to link to your about page, not to the large version on the about page, right?

    If the former then on every picture you want to link to your about page do this:

    <a href="http://weirdscience.ca/about/" Title="Whatever you wanna write here (i.e. About)"><img src="http://weirdscience.files.wordpress.com/2007/06/764237_kids_5.thumbnail.jpg" border="0" alt="name of img" /></a>

    I used the first thumbnail as an example. You can take it from there.

    HTH

    EDIT:
    TT, you’re too fast!

    #116993

    timethief
    Member

    @devblog
    Grrrrrrrrrrrrrrrr … Why did your code post properly when mine didn’t? I used backtics.

    #117001

    devblog
    Member

    $10 and I’ll tell you.

    What happens is that when you write the http:// part, it gets parsed as a link, so what I do is replace the 2 forward slashes with their ASCII code like so:

    http:&#47;&#47;www.domainname.com

    So when the string is parsed by the code, it’s treated as a ‘normal’ text and it’s displayed as such.

    #117002

    timethief
    Member

    Thanks I’ve noted this for future reference. :)

    #117007

    weirdscience
    Member

    thanks..i’m off to try now. :)

    #117010

    weirdscience
    Member

    woot! it worked. I wish I could hand out some of the cookies I just baked to say thanks..hehehe.

    -nibbles a white chocolate chip cookie-

    #117011

    devblog
    Member

    Sure thing. Enjoy your cookies.

    #117012

    timethief
    Member

    Sob :( … how cruel. Now I’ll want a white chocolate chip cookie all day long. ;)

    #117013

    jaroche
    Member

    These are the devblog’s business ;)

    #117014

    timethief
    Member

    These are the devblog’s business ;)

    I know.
    I must have white chocolate cookies {breathing heavily, looking for wallet and preparing to head to the bakery}. ;)

The topic ‘Linking a picture to a page.’ is closed to new replies.