- This topic has 1 reply, 2 voices, and was last updated 7 months, 4 weeks ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The topic ‘Gallery captions’ is closed to new replies.
Homepage › Forums › Free Support Forum › Silverclean Lite › Silverclean Lite Support › Gallery captions
How can I shorten the captions below every picture in the gallery so they don’t interfere with the picture next to it? Also, is there a way to make all the pictures the same size?
Hi, this snippet will help with the captions, copy/paste it in Appearance > Theme Options > Code & CSS > Custom CSS:
#page-container .gallery-columns-3 .gallery-item {
padding: 0 0.75em;
width: calc(33% - 1.5em);
}
It will add some padding on the left and right of each image+caption wrapper, which will prevent caption from getting to close to one another.
As for making the picture the same size, technically it could be forced with CSS, but this will cause some clipping and probably won’t look good when the images don’t have the same ratio and orientation.
A better option would be to prepare the images first (i.e. adapting size and ratio) before adding them to the gallery (possibly a bit tedious though).
Alternatively you could try to use a plugin that specializes in galleries for WP to do handle it for you. Here are a few plugin options you may want to have a look at:
NextGEN Gallery: https://wordpress.org/plugins/nextgen-gallery/
Envira Photo Gallery: https://wordpress.org/plugins/envira-gallery-lite/
FooGallery: https://wordpress.org/plugins/foogallery/
Modula Image Gallery: https://wordpress.org/plugins/modula-best-grid-gallery/
IceableThemes has been crafting, supporting and updating Premium WordPress Themes since 2013.
Any question? Contact us and we'll be glad to help.
Need assistance using one of our themes? Hit our support forums and we'll get your issue sorted in no time.