dimsemenov / PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent
http://photoswipe.com
MIT License
24.18k stars 3.31k forks source link

Share button enable/disable #1675

Open gkulka-web opened 4 years ago

gkulka-web commented 4 years ago

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

andi34 commented 4 years ago

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

Can also be adjusted to check an added class