LIBRATUS thumbnail size

Hi,

I want to change LIBRATUS album thumbnail to square shape crop.
How can I set it ?
Any clue in which files do we need to modify the code to get it done?

Comments

  • acrylian Administrator, Developer
    As in every theme this would be primarily `album.php`.
  • Here is my site and i wish to make the album thumbs square 400x400 px and 3 per row some how not being able to set it through the admin theme option ..

    I think i am looking to change index.php but there also I did not found how to make the album thumbnail look square and enlarged.

    www.mitalpatel.in is my website i am making right now
  • fretzl Administrator, Developer
    This may get you started:

    In index.php change
    `
    <?php printAlbumThumbImage(getBareAlbumTitle(),'check-flagthumb'); ?>
    `

    to

    `
    <?php printCustomAlbumThumbImage(getBareAlbumTitle(), 400, NULL, NULL, 400, 400, NULL, NULL, 'check-flagthumb'); ?>
    `

    In `/js/libratus_zp.js` change
    `
    $('.gallery-thumbs-large').justifiedGallery({
    rowHeight : 180,
    maxRowHeight : 200,
    lastRow : 'nojustify',
    cssAnimation : true,
    margins : 20
    });
    `

    to

    `
    $('.gallery-thumbs-large').justifiedGallery({
    rowHeight : 400,
    maxRowHeight : 400,
    lastRow : 'nojustify',
    cssAnimation : true,
    margins : 20
    });
    `

    And in the theme option `Custom CSS` enter:
    `
    .jg-entry.entry-visible {
    max-width: 400px;
    }
    `

    Btw, the website in your user profile appears to be hacked.
    Better remove or change that.
  • hacked ?
    Uh how do you recognized ?
  • ok my profile link updated in the forum website.
    Thanks. I still want to reduce number of columns

    Albums : Thumbnail per row for index.php
  • fretzl Administrator, Developer
    Apparently you did not change `/js/libratus_zp.js` as suggested above.
    The number of thumbnails per row is entirely dependend on a combination of JavaScript and CSS.
    You'll just have to try.
  • done. appear that cloudflare made issues with caching.

    thanks a lot
Sign In or Register to comment.