WP Manifestindependent plugin directory
manifest / media / gallery-types

Gallery Types

WordPress plugin to define a theme specific gallery type.

by required · github.com/wearerequired/gallery-types · website

0stars
2.9kcomposer installs
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/wearerequired/gallery-types/archive/refs/heads/master.zip

Also on Packagist as wearerequired/gallery-types:

composer require wearerequired/gallery-types

From the readme

Gallery Types A plugin that allows you to define a theme specific gallery type. Props to Jetpack for their Gallery module. Add custom gallery types By default the plugin supports only one type, WordPress default thumbnail grid. To add more types you can use the gallerytypes.types filter. Each type has a key (slider) with two values: label for the label displayed in the select menu and supportscolumns to define whether the type supports columns. If supportscolumns is set to false the columns option will be hidden. Once a user selects a type the shortcode will get a new type attribute with the key of a gallery type as value. To change the default selected type you can use the gallerytypes.default-type filter. Customize gallery output This plugin does not change the ouput of the gallery shortcode. That needs to be part of your theme and could be something like this: Contributing Build Task To update the minfied JavaScript file you need Node.js installed.

Read the full README on GitHub →