• Hi,

    I have added the Gallery Shortcode to single.php like this…

    <?php echo do_shortcode('[gallery columns="12" size="thumbnail" link="file" itemtag="div" icontag="span" captiontag="p" ]'); ?>

    When I click a thumbnail it’s the original uploaded image size that pops up on the screen. How do I make it the ‘Large’ size as defined under ‘Media’.

    Hope someone can help!?

    Best,
    Anders

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Offhand, this does not appear to be possible. The images may need to be resized before uploading. If your ultimate goal is only display “large” as the maximum size, it’ll save space in the long run.

    Thread Starter apaimagixdk

    (@apaimagixdk)

    Sorry – I just realized that I should say I am using Flexible Lightbox

    Moderator James Huff

    (@macmanx)

    Try using WordPress’ native galleries instead.

    Create or edit the page and then click the “Add an image” button (it looks like a tiny picture and it’s first from the left next to “Upload/Insert” above the post edit area. You can use this to upload the picture and WordPress will automatically generate the various sizes (including thumbnails). Now, it’s important to note that once you add an image via this method while writing or editing a post/page, it will be “assigned” to the post/page. Once you have uploaded all of the desired pictures, click the “Add an image” button again and go to the “Gallery” tab. Set your desired settings and click the “Insert Gallery” button at the bottom to add the gallery to your page.

    This document describes the whole process in more detail.

    Once you have it setup, you can use jQuery Lightbox For Native Galleries to achieve the same effect.

    Thread Starter apaimagixdk

    (@apaimagixdk)

    Hi James,

    That’s actually exactly what I am doing. Allthough instead of inserting the gallery with the “Insert Gallery” button I have put the Gallery Shortcode into my template. This way my client can’t do it wrong and I have better control of the layout.

    Anders

    Moderator James Huff

    (@macmanx)

    Have you tried the jQuery Lightbox For Native Galleries plugin? I’ve had no trouble with it on any of my sites.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Gallery Shortcode’ is closed to new replies.