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,

3 Responses to “Customizing DM Albums™ Thumbnails and Navigation Hints”

  1. Jos Saris says:

    Hi,

    Since the last update to DM Album version 3.1.2. I only see [Slideshow] and [Fullscreen] but no more pictures.

    Can you tell me how I get my pictures back.

    By the way. I have in the most post on my blog Google Maps at the end of every post.
    Before this update 3.2.1. the Google Maps in my post where not visible anymore (after upgrading from 3.0 to 3.1.). After the update > 3.2.1. they showed up again?

    Another question:
    Is there a simple way to install galleria as plugin in WordPress?

    Thanks in advance for your answer to my problem/question.

    Kinds regards,

    Jos Saris

  2. Jedha says:

    I am having the same problem as above since the updte. I can no longer see any thumbnails and have no idea where the php file is. Help please???

  3. Markku says:

    Just started to work with my new site and am having the same problem. I can not see thumbnails of my pictures. Thank you for your cool plugin. Could you help us to get it working properly.

    - Markku

Leave a Comment