Shut down the Gallery shortcode

Home Forums Legacy Support Support queries How-to & Troubleshooting Shut down the Gallery shortcode

Tagged: ,

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #23393
    isigma
    Spectator
    That is true that WP gallery doesn't have a lightbox mode, with each project we have to add one. As the majority of my projects are around photography, I know that it is difficult to deal with vertical images, combined with square and/or landscape orientation images on the gallery grid, to make it look nice. I know and use two main compromising solutions: 1. Masonry style gallery for code lighter websites (http://rogertoll.com/portfolio/landscape/) 2. Square grid of cropped images (thumbnail size in WP gallery) http://folio.isigma.info/folk-art-market-2105/ Both solutions are combined with lightbox. I like that you included a lightbox into the WPLMS gallery, but because I mainly rely on square grid, there are two moments it is missing for me here: 1. Tiny size of images. Is it possible to change it in an easy way, or I have to manually fix it in Vibe shorcodes plugin after each update? 2. Images in square grid has to be cropped, not shrunk, as for most photos it doesn't look pleasant, especially when they are "readable" with larger size. Is it possible to change the gallery code to use WP thumbnail images? Then it is even unnecessary to shut down the sizing algorithm in the Vibe shorcodes plugin.   Also for some reason 3 columns doesn't work (2,4,5 work, but not three) with any image sizes. If I set up three, I get 5 columns. Even if there are only three images in the gallery there are two empty placeholders at right (see the screenshot). Can you please check the magical number 3? If you would help me to solve these three problems then I would happily use WPLMS gallery and wouldn't need to edit all the existing posts, pages and courses to change the code.
    #26872
    H.K. Latiyan
    Participant
    You'll have to add columns="3" manually for gallery shortcode. The default gallery shortcode implementation has been done to keep it compatible with older versions so that existing users are not impacted on update.
    #26976
    isigma
    Spectator
    Why "3" is special? All other numbers work automatically... But anyway, thank you for the "cure". May I expect your help with my other two questions? 1. Tiny size of images. Is it possible to change it in an easy way, or I have to manually fix it in Vibe shortcodes plugin after each update? 2. Images in square grid has to be cropped, not shrunk, as for most photos it doesn't look pleasant. Is it possible to change the gallery code to use WP thumbnail images? Then it is even unnecessary to shut down the sizing algorithm in the Vibe shortcodes plugin.      
    #32486
    isigma
    Spectator
    Guys, I finally got to the Gallery issue in my todo list, and honestly, I do not understand why did we spend so much time discussing this! Here is the background
    • WP in the native gallery shortcode uses defaults: columns="3" size="thumbnail". Only this settings do not appear in the code if was chosen.
    • In your code (shortcodes.php) you use different defaults: columns="5" size="normal".
    This simple fact confuses situation when gallery is built with 3 column thumbnail, because we will receive 5 normals instead. If there is no special meanings to your defaults, can you please change them to following in your shortcodes.php function gallery( $atts, $content = null ) { extract(shortcode_atts(array( 'size' => 'thumbnail', 'columns'=>3, 'ids' => '' ), $atts)); Because it does all the magic, we have a traditional WP thumbnail gallery, plus there is no need in manual correctioin of the shortcode in posts for magical number 3 - see the screenshot. Please let me know whether you plan to do it, so I want need to edit your shortcode.php after each update.
Viewing 4 posts - 16 through 19 (of 19 total)
  • The topic ‘Shut down the Gallery shortcode’ is closed to new replies.