NextGen Gallery different thumbnail size per gallery

How can I instruct NextGen Gallery to use different thumbnail sizes for different galleries. I have different gallery te

How can I instruct NextGen Gallery to use different thumbnail sizes for different galleries. I have different gallery templates for use in different parts of the site, and the sizes of the thumbnails are not the same. At the moment I have to stay generating the thumbnails through the gallery management page, it would be much better if I could set the thumbnail size for each gallery once and for all. Thanks.

How can I instruct NextGen Gallery to use different thumbnail sizes for different galleries. I have different gallery templates for use in different parts of the site, and the sizes of the thumbnails are not the same. At the moment I have to stay generating the thumbnails through the gallery management page, it would be much better if I could set the thumbnail size for each gallery once and for all. Thanks.

Share Improve this question asked May 31, 2011 at 22:04 urok93urok93 4,05412 gold badges66 silver badges104 bronze badges 0
Add a comment  | 

3 Answers 3

Reset to default 3

Templates

The most important feature improvement in Version 1.00 is the template engine. Custom templates are PHP files that can be stored in the folder nggallery, inside your theme directory. NextGEN gallery look up always first into this folder if there are the vaild template file. For example, if you are using the default WordPress theme then you can store a template file at :

/wp-content/themes/default/nggallery/gallery-sample1.php

To use now this template in a post or page you insert the tag:

[nggallery id=1 template=sample1]

This tells NextGEN Gallery to use ‘gallery-sample1.php’ to show the gallery output. Without this template tag, NextGEN takes the default template (gallery.php) from the plugin folder (unless you copy it to your theme folder), normally located at :

/wp-content/plugins/nextgen-gallery/view/gallery.php

The same you can use for album, singlepic or imagebrowser, all of them are template driver so that you can easily modify the output without having problems during a upgrade.

Resource: http://nextgen-gallery/templates/

You must to do:

  1. Set option "Override thumbnail settings" to "Yes"

https://yourdomain/wp-admin/admin.php?page=ngg_display_settings

1.1. in BASIC BASIC THUMBNAILS

1.2. in BASIC EXTENDED ALBUM

  1. In template write thumbnail_width and thumbnail_height

echo do_shortcode( '[nggallery id=1 template="your_template" thumbnail_width="229" thumbnail_height="331"]' )

The simplest way is to select all the images in the gallery then chose Create New Thumbnails from the Bulk Actions dropdown. You can enter the required dimensions for your thumbnails and it will only affect that gallery

https://code.google/p/nextgen-gallery/issues/detail?id=63#c6

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744848106a4596964.html

相关推荐

  • NextGen Gallery different thumbnail size per gallery

    How can I instruct NextGen Gallery to use different thumbnail sizes for different galleries. I have different gallery te

    2天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信