Support » Plugins » Disable image links on my customized gallery

  • Hi there,

    I have customized the standard wordpress gallery so it displays a scrolling image gallery:

    This uses a bit of javascript for the hover navigaton and fade effect. The rest is all done by customizing the gallery shortcode in the media.php file.

    It all seems to work ok, but I really need to disable the image links (I want to completely stop the images being clickable, i.e remove the link to the image file)

    I think its in this line somewhere:

    $link = isset($attr[‘link’]) && ‘file’ == $attr[‘link’] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, false, false);

    but I’m a bit lost as to what to remove / change

    Any ideas?


  • The topic ‘Disable image links on my customized gallery’ is closed to new replies.