• I’m trying to link a gallery image to it’s own page that I have created and published within my site. I’ve tried entering the page url into the “link url” box but no matter what I try, it defaults back to the “post url”. Hope that makes sense. Please help!
    Thanks,

    Josh

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter JoshU

    (@joshu)

    Anyone? I just know there’s some small detail I’m missing.

    Thread Starter JoshU

    (@joshu)

    Ok, figured it out for myself and I’ll attempt to explain in case anyone runs into the same issue. My problem had to do with how the images were attached. If you want an img to link out to another page, you have to specify that during the upload process. Otherwise it becomes automatically attached to the page you’re uploading it to. Anyway, I think this article explains it way better than I just did.

    http://codex.wordpress.org/Using_Image_and_File_Attachments

    Phil

    (@owendevelopment)

    Another way is via HTML.

    once you have selected the image and want to link it, switch to the HTML view in the post page and alter:

    FROM THIS:

    <img src="http://www.yourdomain.com/wp-content-uploads/image1.jpg" />

    TO THIS:
    <a href="http://www.yourdomain.com/targetpage"><img src="http://www.yourdomain.com/wp-content-uploads/image1.jpg" /></a>

    You notice the ‘a’ tag at the start and the end? This creates that image as a link to the ‘targetpage’.

    Hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Image link to page’ is closed to new replies.