Simple gallery - showing only the first thumbnail.

Permalink Browser Info Environment
Hello! Can you tell me if it is possible to display only the first thumbnail, so that when you click on it, the entire gallery will scroll through in the lightbox? I couldn't edit the view file myself ...

Type: Discussion
Status: Archived
Virsha50
View Replies:
Parasek replied on at Permalink Reply
Parasek
Hi

You can add this css code in "Header Tracking Codes" in
yoursite.com/index.php/dashboard/system/seo/codes
This will hide all elements beside first.
<style>
   .js-sg > a:not(:first-child) {
      display: none;
   }
</style>

This will also affect all "Simple Gallery" blocks.

If you want it to work only for specific gallery, there are many ways to do it.
For example:
<style>
   .ccm-page-id-XXX .js-sg > a:not(:first-child) {
      display: none;
   }
</style>

where XXX is id of your page

or
<style>
   .sg-XXX > a:not(:first-child) {
      display: none;
   }
</style>

where XXX is identifier unique to your block (you need to look in page source to find it).

Cheers

concrete5 Environment Information

I do not understand where to get it I'm Russian

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

Click below to request a refund for License #8248567. Assigned to Virsha.
Created on Nov 01 2020 at 7:29 pm
.