• Hello,

    Currently im uploading my images into wordpress and using thumbnails that link to the images on different pages.

    When you click a thumbnail it takes you to the page where fullsize image is displayed – how do i remove the link from this image though?

    I just want the image to load in the wordpress template and not contain a link to the original

    Any help would be greatly appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • In the upload manager below the area where you write a post, you see “Browse All”, right? When you click on any of the thumbnails listed there, you get an options menu that pops up over the image. “Using Thumbnail” can be changed to “Using Original”; “Linked to Image” can be changed to “Linked to Page” or “Not Linked.” Those are options you can select and then click on “Send to Editor” when you’re ready.

    Thread Starter chris2006

    (@chris2006)

    Yup,

    I chose ‘Thumbnail’ Linked to ‘Page’

    But on the Page the image links to the original image – how do i remove that image link?

    I just want the image to be displayed on the page normally but without the link.

    Choose “Not Linked.”

    When you link to a page, that tells WordPress to link the image to another page with the image on it.

    Thread Starter chris2006

    (@chris2006)

    When you link to a page, that tells WordPress to link the image to another page with the image on it.

    Yes that’s what i want it to do – but on that page the image still links to the original.

    I need to know how to remove the image hyperlink on that page ??

    I just want the image to load in the wordpress template and not contain a link to the original

    I took that to mean that you don’t want any links to anything. So you *do* want the image in your post to have a link to the original? It’s just that when you click on the image in your post, the resulting page has a copy of the full image with a link on it, right?

    attachment.php in your theme controls that layout. I found this somewhere in the forums. Here’s what you want to do.

    Replace:
    <?php echo $attachment_link; ?>

    With:

    <?php $image_info = getimagesize($post->guid); ?>
    
    <img src="<?php echo $post->guid; ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" <?php echo $image_info[3]; ?> />

    Trouble is, though, that if you have any attachments that aren’t images, you haven’t given your users a link to download the attachment.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image uploads displayed on page’ is closed to new replies.