#1150 Posted in ‘Showtime Image Gallery’

Latest post by Lefteris Kavadas on Wednesday, 24 January 2024 11:52 EET

Joachim Kröner
Hello,

is it possible to display the thumbnails in the center?

It looks good here:
http://dev.prechter-renner.de/de/kabelschutz/durchfuehrungstuellen-u-form-oval-langloch/durchfuehrungstuellen-mit-langloch-do

Not here:
http://dev.prechter-renner.de/de/kabelschutz/durchfuehrungstuellen-u-form-oval-langloch/durchfuehrungstuellen-dog
http://dev.prechter-renner.de/de/kabel-verbindungstechnik/aderendhuelsen/aderendhuelsen-isoliert

Is it also possible to hide the thumbnails if there is only one image:
http://dev.prechter-renner.de/de/kabel-verbindungstechnik/aderendhuelsen/aderendhuelsen-isoliert

Thank you very muc :)

Lefteris Kavadas
Hi Joachim,

Showtime Image Gallery is using Slick carousel and I don't think there is a way to center the thumbnails when there are fewer images than the number you have configured to display.
What you can do is go to the "Display" tab in the gallery and tweak the "responsive" settings for that gallery. You can set the "Items to show" option to 2 or 1 for that gallery that has only two images.

In order to hide the thumbnails when there is only one image you need to do the following:

1. Create an override for the slideshow.php layout. The location of the file is different depending on the integration type (custom field or gallery in the editor text). You can find detailed instructions at the documentation page https://www.firecoders.com/documentation/showtime-image-gallery#layouts
2. After you create the override, edit the file you created and edit lines 44 and 50 so they look like:
<?php if($gallery->params->get('layoutThumbnails', 0) && count($gallery->images)): ?>


If you need help with this please create a new private ticket and provide site and server access so I can create the layout override for you.

Regards

Joachim Kröner
Hello,

thank you very much.

I was setting this:
.slick-slider .slick-track, .slick-slider .slick-list { transform: none!important;}

so now, the thumbnails are in center :)

And for the second problem, this was helping:
<?php if($gallery->params->get('layoutThumbnails', 0) && count($gallery->images) > 1): ?>

Thank you very much :)

Lefteris Kavadas
You are welcome.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review