Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25121

    Hi,

    I have put a picture on a page and wanted to link to a page if someone klick on the picture.

    But it does not work.

    How can I do this to put a link to a page if someone klick on the picture.

    Thanks a lot.

    BTW:

    The replete theme is great and your service here is excellent!

    #125833

    Hi,

    Add the nolightbox class.

    Something like this

    <a class="nolightbox" target="_blank" href="http://www.kriesi.at"><img class="alignnone size-full wp-image-317" alt="2" src="http://localhost/kriesi/replete/wp-content/uploads/2012/04/2.jpg" width="1000" height="650" /></a>

    Regards,

    Ismael

    #125834

    Thanks, but I am not a professional.

    HOW can I do it?

    Where shall I add the nolightbox class ??

    Regards

    Michael

    #125835

    Hi,

    On the anchor tag <a class=”nolightbox”. When you insert an image, the code should look something like the one above.

    In what area did you add your image? Post? Page?

    Regards,

    Ismael

    #125836

    I add the image in a page AND in a post.

    Thanks.

    #125837

    Hi,

    Upload the image using media then edit it to get the full url to the image. Now create a new page or post and make sure you are in the Text and not Visual edit view. Then just add the normal html code for a link with an image.

    <a href='http://link-to-page-from-clicking-image.com" title="title of link" ><img src="http://url-to-where-you-uploaded-image.com" alt="image of a house" /></a>

    just replace the 2 urls (one url is image and second url is location of page where image clicking will lead to)

    Thanks,

    Nick

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Link form a picture to a page?’ is closed to new replies.