photoswipe "share button" hide

Phoca Gallery - image gallery extension
traveler
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Jul 2017, 12:12

photoswipe "share button" hide

Post by traveler »

Hello Phoca Heroes,
I love Photoswipe, exactly the way i want to present my pictures. But the share button i don't need in some Website's. Therefore i was looking for a way to hide it. Is it possible to implement an option to show or hide the share button and its choices separately?
Thank you for your great work!

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2725
Joined: 28 Nov 2010, 17:20

Re: photoswipe "share button" hide

Post by christine »

Hi traveler,

in: default-skin.css there is:

Code: Select all

.pswp__button--share {
background-position: -44px -44px;
}
you could add to your template.css:

Code: Select all

.pswp__button--share {
display:none;
}
Kind regards, Christine
traveler
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Jul 2017, 12:12

Re: photoswipe "share button" hide

Post by traveler »

Hi christine,
thank's for your suggestion. I altered the code and it works!
But for the future, an Option in the settings would be nice.
again thank you and have a nice day.

the traveler
Post Reply