• chiddybang

    (@chiddybang)


    Hi.

    I am using WordPress’ in-built gallery function. I have embedded the gallery on a page using thumbnails. When you click on an image, it takes you to that specific page in the gallery (with comment form below). However, you have to click on the image AGAIN to make it full size. Is there any way to adjust the size of the image? I know you can make the thumbnails bigger on the gallery overview, but I’m talking about the image-specific page.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    You need to edit your theme’s image.php template file and change:

    <?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?>

    to:

    <?php echo wp_get_attachment_image( $post->ID, 'full' ); ?>

    Thread Starter chiddybang

    (@chiddybang)

    Thanks!

    However, ‘full’ or ‘large’ is too big.. and ‘medium’ too small. Is there an inbetween?

    esmi

    (@esmi)

    Sorry – no. One option is to reduce the size of your Large image in Admin/Media appropriately and then use the Regenerate Thumbnails to regenerate your existing thumbnails.

    Alternatively you could assign a new class to your images in image.php then use CSS to reduce the displayed image size.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Gallery preview size’ is closed to new replies.