Opened 5 years ago

Closed 4 years ago

#6468 closed enhancement (invalid)

Gallery should have an option to skip medium sized image

Reported by: mnogueir Owned by:
Priority: normal Milestone:
Component: Gallery Version: 2.5
Severity: normal Keywords: gallery, thumbnail
Cc: mnogueir@…

Description

There should be an option in gallery shortcode to bypass the medium sized image, linking the thumbnail directly to the image. This would be most useful for those who use Lightbox (or alikes) to display the images. Thanks.

Change History (4)

Just found this info somewhere:

edit media.php in the wp-includes dir:

The line number 394 is as follows in 2.5:

$link = wp_get_attachment_link($id, $size, true);

change it to:

$link = wp_get_attachment_link($id, $size, false);

and it should work!

So, couldn't this be coded as an admin option? Thanks

  • Milestone changed from 2.7 to 2.8

comment:3   ryan4 years ago

  • Component changed from General to Gallery
  • Milestone changed from 2.8 to 2.9
  • Owner anonymous deleted

comment:4   DD324 years ago

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

I believe this has been implemented in 2.7? the gallery options section?

Note: See TracTickets for help on using tickets.