Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share button enable/disable #1675

Open
gkulka-web opened this issue Jan 29, 2020 · 1 comment
Open

Share button enable/disable #1675

gkulka-web opened this issue Jan 29, 2020 · 1 comment

Comments

@gkulka-web
Copy link

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
Copy link

andi34 commented Aug 20, 2020

if (radios[i].checked) {
if(radios[i].id == 'radio-all-controls') {
} else if(radios[i].id == 'radio-minimal-black') {
options.mainClass = 'pswp--minimal--dark';
options.barsSize = {top:0,bottom:0};
options.captionEl = false;
options.fullscreenEl = false;
options.shareEl = false;
options.bgOpacity = 0.85;
options.tapToClose = true;
options.tapToToggleControls = false;
}

Can also be adjusted to check an added class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants