• I’ve got the gallery in a post working in an acceptable way unfortunately I can’t seem to locate where I can turn disable the code that makes a link out of the image that when you click it goes to the image on a completely blank page, which I assume is the permalink for where images reside in the uploads folder…
    I just want people to be able to click the thumbnails in a post, see a larger image and then go no further, any advice on how to turn this feature off would be greatly appreciated.
    please see here for where I am trying to implement this:
    https://www.lightoverwater.co.uk/blog/?p=486

Viewing 7 replies - 1 through 7 (of 7 total)
  • same here. Maybe we find it somewhere in the wp-include files..

    same here. Maybe we find it somewhere in the wp-includes.. I thought, but now i think it already happens in the tinymce editor… cant find it yet.

    overlooked by myself, heres the solution:
    https://codex.www.ads-software.com/Using_Image_and_File_Attachments

    search for explanation:
    # Not Linked means the image will simply appear in the post without any kind of hyperlink attached to it (if a visitor clicks on it, it will not take them to another page.)

    means, klick “None” where it saxs: Enter a link URL or click above for presets.

    Thread Starter shiatostorm

    (@shiatostorm)

    Yes, I was aware of this, yet even with this option selected it seems my images can be clicked on all the way through to a blank page and just the image…

    Hi shiatostorm,
    do you mean in galleries? The link seems to reappear in the galleries media upload thing. When in text, clicking on an picture in the editor and editing its options it doesnt here..

    Hi,

    I realize this post is 5 months old, but I am having the same issue, and it would be great to solve.

    Specifically, I create a post with a gallery of images. I leave the “Enter a link URL or click above for presets.” form field blank. However, on the ‘attachment page’, the image is clickable, and goes to an ugly image only page.

    Is there any way to disable the link or set the link on the attachment page?

    I too need to correct this. I understand how to insert an image with no link, or to link to a file, but my client accidentally links it to this page via the “post URL” button.

    On clicking the image, this presents a page that is broken with comment posts, and seems to be unrelated to anything in my theme. I have no way to disable this feature nor to edit the page.

    Adding attachments.php to the them folder has no effect whatsoever.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to disable image url link (permalink) in WP gallery posts?’ is closed to new replies.