Per-gallery settings - manual method
If you prefer not to use the editor button, you can override settings manually for each gallery, by including attributes in your opening {gallery} tag, similarly to how you would when writing html. For example:
If you mistype the name of a setting or if you provide a setting value that isn’t valid for that setting, it will be ignored, and the setting you’ve chosen in the plugin’s admin page will be used instead.
The below provides a reference on which settings can be overridden, what mark-up to use, and what values are allowed for each setting. For info on what each of these settings does, refer back to the settings section of this guide.
Text. Must be a valid file path.
-
0
- Don't show image titles. -
1
- Show image titles only when cursor hovers over the image. -
2
- Show image titles all the time.
-
0
- No, don't putalt
tags on the images. -
1
- Yes, use image titles foralt
tags.
-
0
- No, don’t use the labels file (even if it exists). -
2
- Yes, use the labels file (if it exists).
-
0
- Use the legacy shadowbox (from before version 3.0 – you might prefer it, but I don’t think it’s as good). -
1
- Use another shadowbox. -
2
- No shadowbox. -
3
- Use the awesome new shadowbox.
-
0
- File name. -
1
- Date.
-
0
(false) - Ascending. -
1
(true) - Descending.
-
0
No filter. -
1
. Sepia. -
2
. Greyscale (black and white).
Any acceptable CSS colour (usually hex, RGB or RGBA).
Any acceptable CSS colour (usually hex, RGB or RGBA).
Any acceptable CSS colour (usually hex, RGB or RGBA).
-
0
- Show. -
1
- Hide.