Customizing DM Albums Thumbnails and Navigation Hints January 8th, 2012
We had a user ask a question regarding some customization. DM Albums previously allowed for adjusting thumbnail height, but that has been removed for this release. This is pretty easy to adjust, though, and I thought I’d share the instructions:
Thumbnail size:
In javascript/galleria.php, change line 26 to have whatever size you want:
$size_thumb = "&width=60&height=40";
But changing the thumbnail height will screw up the positioning of the caption, so you’ll need to change the bottom: value in galleria/themes/classic/galleria.classics.css
.galleria-info {
width: 100%;
bottom: 60px;
left: 0px;
z-index: 2;
position: absolute;
}
This will place the caption at the right height. You’ll have to mess around with this a little, but whatever the height is of the thumbs plus 20 should do it.
Caption font size:
In the same file, you can also adjust the font of the caption:
.galleria-caption{
position: absolute;
width: 100%;
bottom: 0px;
padding-top: 10px;
text-align: center;
background: #000000;
color: #dddddd;
font: 11px helvetica,sans-serif !important;
font-weight: normal !important;
opacity: 0.5;
z-index: 1;
filter: alpha(opacity=50);
}
Permanent Navigation Hints
As for making the image navigation hints permanent, just add the following line after the idleTime: 2000 line at line 76 of javascript/galleria.php:
idleMode: false,
Posted in Latest News & Announcements | 9 Comments »
9 Responses to “Customizing DM Albums Thumbnails and Navigation Hints”