• Hi,

    How do I make the images in my gallery unclickable? I know how to do it for a single image, but how do you do it for images in a gallery?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Are you using a plugin for your gallery or is it custom code?

    If it’s a plugin, you need to find the main php file of the plugin in wp-content/ plugins/ name of the plugin your use for your gallery.
    Once you do that, you should find a line resembling <?php the_permalink(); ?> (if when you click on the picture it sends you to a blogpost).

    There’s no way I can be more specific without knowing if you use a plugin and which one.
    If you don’t use a plugin just take off the <a> </a> or replace the clickable link with a #, like that <a href="#"></a>.

    Thread Starter Meenimod

    (@meenimod)

    Are you using a plugin for your gallery or is it custom code?

    If it’s a plugin, you need to find the main php file of the plugin in wp-content/ plugins/ name of the plugin your use for your gallery.
    Once you do that, you should find a line resembling <?php the_permalink(); ?> (if when you click on the picture it sends you to a blogpost).

    There’s no way I can be more specific without knowing if you use a plugin and which one.
    If you don’t use a plugin just take off the or replace the clickable link with a #, like that .

    Hi, I’m using the default gallery that comes with wordpress.

    I found this on another thread:

    When you upload an image, or choose an image in your media library to put in your post, you have the field “link url” just below the description.

    From there, you have three buttons : “none” “file url” or “post url”.

    If you do not enter a link manually, or click a button to fill this field, then, no link will be added, and the image will not be “clickable”

    maybe it changed slightly but it should still work.

    Otherwise I can recommend you the Nextgen-gallery, it’s really easy to install (especially using shortcodes) and setup and they have quite a lot of options.

    I found this on another thread:

    When you upload an image, or choose an image in your media library to put in your post, you have the field “link url” just below the description.

    From there, you have three buttons : “none” “file url” or “post url”.

    If you do not enter a link manually, or click a button to fill this field, then, no link will be added, and the image will not be “clickable”

    maybe it changed slightly but it should still work.

    Otherwise I can recommend you the Nextgen-gallery, it’s really easy to install (especially using shortcodes) and setup and they have quite a lot of options.

    Thread Starter Meenimod

    (@meenimod)

    I found this on another thread:

    When you upload an image, or choose an image in your media library to put in your post, you have the field “link url” just below the description.

    From there, you have three buttons : “none” “file url” or “post url”.

    If you do not enter a link manually, or click a button to fill this field, then, no link will be added, and the image will not be “clickable”

    maybe it changed slightly but it should still work.

    Otherwise I can recommend you the Nextgen-gallery, it’s really easy to install (especially using shortcodes) and setup and they have quite a lot of options.

    I already know about that, however the “link url” is not present in the default WordPress gallery, its only present in individual images.

    I’ll try the Nextgen-gallery.

    Thanks for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do I make the images in my gallery unclickable?’ is closed to new replies.