WordPress.org

Plugin Directory

Gallery Theme

You will be able to deeply style wordpress galleries using this plugin.

You will be able to deeply style wordpress galleries using this plugin.
You can design your own gallery theme file and place it in your main template folder (in the root) or plugin's 'themes' folder (wp-content\plugins\gallery-theme\themes).

There is a simple theme file 'gallery-theme-default.php' in the plugin's 'themes' folder. You can use it as an example and try to design your own theme files.
Remember when you activate this plugin all of your wordpress galleries will use this simple theme instead of the wordpress's internal gallery theme.

You can also have multiply theme files and edit your galleries to use one of those themes.
For example:

  • If you choose your gallery theme file name like this: 'gallery-theme-default.php' and place it in the root of your main template folder, wordpress galleries will use this theme as default theme instead of wordpress's internal gallery theme.
  • If you choose your gallery theme file name like this: 'gallery-theme-example.php' and place it in the root of your main template folder, you should edit your gallery shortcodes like this to use this theme: [gallery ids="729,732,731,720" theme="example"].

Note: It's better to place all your needed css and javascript files out of your gallery theme file. It's better to place them in your main template's header file.

Note: Beside the simple default theme, there is another theme 'Fotorama' already integrated and ready to use with this plugin. You can use this plugin just by adding theme="fotorama" into your gallery shortcodes.

These are the codes you can use in your gallery theme files (inside the loop):
$image['thumb'] --> getting thumbnail url of the image
$image['medium'] --> getting medium-size url of the image
$image['large'] --> getting large-size url of the image
$image['full'] --> getting full-size url of the image
$image['width'] --> getting full-size image width
$image['height'] --> getting full-size image height
$image['link'] --> getting image page link
$image['title'] --> getting image title
$image['caption'] --> getting image caption
$image['alt'] --> getting image alternative text
$image['description'] --> getting image description
$settings['link'] --> getting link value from gallery settings
$settings['columns'] --> getting columns value from gallery settings
$settings['orderby'] --> getting sorting type from gallery settings

Website Link

Requires: 3.5 or higher
Compatible up to: 4.2.4
Last Updated: 2015-5-9
Active Installs: 200+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2
100,1,1
100,1,1
100,2,2 100,1,1 100,1,1
50,2,1