Forums

Gallery Shortcode (6 posts)

  1. apa@imagix.dk
    Member
    Posted 1 year ago #

    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

  2. James
    Happiness Engineer
    Posted 1 year ago #

    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.

  3. apa@imagix.dk
    Member
    Posted 1 year ago #

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

  4. http://web-argument.com/flexible-lightbox/
  5. to show the images on screen when a gallery thumbnail is clicked. It's the lightbox effect that comes up in the original filesize.

  • James
    Happiness Engineer
    Posted 1 year ago #

    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.

  • apa@imagix.dk
    Member
    Posted 1 year ago #

    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

  • James
    Happiness Engineer
    Posted 1 year ago #

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

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.