Page 1 of 2

Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 31 Jul 2022, 14:56
by rmaitre
Hello,
In a slideshow, I want to make the "Share" button disappear (Share on facebook, tweet, pin it, download image).
Indeed the content published on my site must be protected against copying and downloading by express agreement with the French Administration (National Archives and Departmental Archives).
I therefore cannot let visitors download the images of the documents they view.
Please tell me how to remove this possibility of sharing and downloading in slideshows.
Best regards
rmaitre

Bonjour,
Dans un diaporama, je veux faire disparaitre le bouton « Share ( Share on facebook, tweet, pin it, download image).
En effet le contenu publié sur mon site doit être protégé contre la copie et le téléchargement par convention expresse avec l’Administration Française (Archives nationales et archives départementales).
Je ne peux donc laisser les visiteurs télécharger les images des documents qu’ils visionnent.
Merci de bien vouloir m’indiquer la marche à suivre pour supprimer cette possibilité de partage et de téléchargement dans les diaporamas.
Bien cordialement
rmaitre

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 31 Jul 2022, 18:16
by rmaitre
For clarification, it's "Share/Download image" that I want to disable or delete!
I can keep the other functions.

Pour plus de précisions, c’est « Share/Download image » que je veux désactiver ou supprimer !
Je peux conserver les autres fonctions.

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 31 Jul 2022, 19:26
by christine
Hi,

I don't know, which slideshow you mean. Maybe to see it live, could be useful.
Ah, maybe you mean on the top: slideshow/zoom//share/close

If you mean the Detail View with photoswipe, you can disable the share button with:

Code: Select all

button.pswp__button.pswp__button--share {
display: none;    
}
Kind regards
Christine

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 31 Jul 2022, 20:35
by rmaitre
Hello Christine,
Thank you for your reply.
But in which file should I introduce this code ?
Best regards
rmaitre

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 31 Jul 2022, 21:28
by christine
Hi maitre,

depends on you template. Either you create a customs.css in Phoca, or there is a custom.css in your template, or e.g. in Cassiopeia it is a user.css

Kind regards
Christine

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 31 Jul 2022, 23:07
by rmaitre
Thanks a lot !
I added this code in a user.css that I had already created for the Cassoipeia template of my site.
It works perfectly, the button has disappeared from the slideshow and my problem is solved.
Kudos for your responsiveness,
Best regards
rmaitre

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 01 Aug 2022, 10:48
by christine
Hi rmaitre,

That's fine!
Kind regards
Christine

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 06 Oct 2023, 13:12
by jobrusche
The file ../media/com_phocagallery/css/custom/default.css is empty

I added the code:

button.pswp__button.pswp__button--share {
display: none;
}

in this file default.css and that works also to hide the share button

Regards,
Johan.

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 27 Oct 2023, 14:11
by jobrusche
! Beware hat a Phocagallery update resets de content op default.css !

Re: Slideshow of a gallery – Disabling or removing the “Share” Button

Posted: 27 Oct 2023, 14:19
by christine
Hi jobrusche,
jobrusche wrote: 27 Oct 2023, 14:11 ! Beware hat a Phocagallery update resets de content op default.css !
Of course.
The default.css is not provided.
As I wrote in previous posts: css changes always e.g. in the user.css (e.g. Cassiopeia) or in a custom.css from the template.

Kind regards
Christine