PhotoSwipe icon indicating copy to clipboard operation
PhotoSwipe copied to clipboard

Share button enable/disable

Open gkulka-web opened this issue 5 years ago • 1 comments

Hi,

In general, I need to switch off share button beside one page, but.... Editing photoswipe-ui-default.js "shareEl: false" has no effect for full webpage. I have tried to include in photoswipe-mansonry.php simple "if ( is_page( '1234' ) )" in photoswipe_footer function, but effect was opposite to previous method - switch off for full site. How to manage one page that needs to have share function ?

Best regards, Greg

gkulka-web avatar Jan 29 '20 21:01 gkulka-web

https://github.com/dimsemenov/PhotoSwipe/blob/b6fdb82ed0b5b635c0943098f3046581a02ead77/website/index.html#L775-L787

Can also be adjusted to check an added class

andi34 avatar Aug 20 '20 20:08 andi34