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

Phoca Gallery - image gallery extension
rmaitre
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 30 Jul 2022, 06:54

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

Post 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

Tags:
rmaitre
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 30 Jul 2022, 06:54

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

Post 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.
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

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

Post 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
rmaitre
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 30 Jul 2022, 06:54

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

Post by rmaitre »

Hello Christine,
Thank you for your reply.
But in which file should I introduce this code ?
Best regards
rmaitre
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

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

Post 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
rmaitre
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 30 Jul 2022, 06:54

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

Post 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
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

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

Post by christine »

Hi rmaitre,

That's fine!
Kind regards
Christine
User avatar
jobrusche
Phoca Member
Phoca Member
Posts: 26
Joined: 18 Apr 2012, 16:26

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

Post 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.
User avatar
jobrusche
Phoca Member
Phoca Member
Posts: 26
Joined: 18 Apr 2012, 16:26

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

Post by jobrusche »

! Beware hat a Phocagallery update resets de content op default.css !
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

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

Post 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
Post Reply