WordPress.org

Ready to get started?Download WordPress

Forums

Gallery Image Attachment Page (3 posts)

  1. bec7utd
    Member
    Posted 1 year ago #

    Hello!

    I really like thumbnails that link to an attachment page, but once at the attachment page I'd like it if clicking the image led to the image file. As is currently, clicking the attachment page image cycles through to the next gallery image. Give it a try here and see what I mean:
    http://www.coloropolis.com/2012/06/23/andy-warhol-25-cats-name-sam-and-one-blue-pussy-coloring-pages/andy-warhol-coloring-page-red-cat/

    Is there a setting somewhere in WordPress or Weaver II that I change to get the desired affect?

    Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    When inserting a gallery, you are given the option to Link thumbnails to an Image File or an Attachment Page. Choose Image file.

  3. headwes
    Member
    Posted 10 months ago #

    I ran into the same issue. It was resolved by changing wp-includes/image.php. In my case, I changed

    if ( count( $attachments ) > 1 ) {

    to

    if ( count( $attachments ) < 1 ) {

    Of course, there are never < 1 attachments, so it will return false and instead of linking to the next image it will just link to the full size version of the current image.

Topic Closed

This topic has been closed to new replies.

About this Topic