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?
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
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.
Comments
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
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.
Uh how do you recognized ?
Thanks. I still want to reduce number of columns
Albums : Thumbnail per row for index.php
The number of thumbnails per row is entirely dependend on a combination of JavaScript and CSS.
You'll just have to try.
thanks a lot