2012-05-06, 19:19:35
If anyone wants to add the title of a gallery just below the thumbnail, I found a solution.
I do it because my client wants to display a single thumbnail per gallery, so the title for each one is recommended in order to recognize them.
I test it only with prettyphoto plugin :
1- Edit the file plugin_prettyphoto.php (in plugins/i18n_gallery)
2- Find the line :
3- add before :
h2 or span or what you want.
4- Save the file and that's done.
It will be interesting to add this option in gallery management, no ?
I do it because my client wants to display a single thumbnail per gallery, so the title for each one is recommended in order to recognize them.
I test it only with prettyphoto plugin :
1- Edit the file plugin_prettyphoto.php (in plugins/i18n_gallery)
2- Find the line :
Code:
<?php if ($showtitles) { ?>
3- add before :
Code:
<h2 style="word-wrap: break-word; <?php echo 'width: '.@$gallery['thumbwidth'].'px;'; ?> "><?php echo $gallery['title']; ?></h2>
4- Save the file and that's done.
It will be interesting to add this option in gallery management, no ?