WordPress.org

Ready to get started?Download WordPress

Forums

Disable image links on my customized gallery (1 post)

  1. dominic101
    Member
    Posted 4 years ago #

    Hi there,

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

    http://www.shape-studio.co.uk/wordpress/

    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?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic