Member
Member
atomicmak   2016-03-25, 05:51
#1
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?
Administrator
Administrator
acrylian   2016-03-25, 10:30
#2
As in every theme this would be primarily `album.php`.
Member
Member
atomicmak   2016-03-25, 10:46
#3
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
Administrator
Administrator
fretzl   2016-03-25, 12:34
#4
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.
Member
Member
atomicmak   2016-03-25, 13:39
#5
hacked ?
Uh how do you recognized ?
Member
Member
atomicmak   2016-03-25, 13:56
#6
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
Administrator
Administrator
fretzl   2016-03-25, 14:57
#7
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.
Member
Member
atomicmak   2016-03-25, 15:17
#8
done. appear that cloudflare made issues with caching.

thanks a lot
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.