HI,
I have a customer is requesting for the AUTOMATIC zoom to be disable however still will like to have the option for user.
The CMS only gives me the option to disable or enable the button.
I have a customer is requesting for the AUTOMATIC zoom to be disable however still will like to have the option for user.
The CMS only gives me the option to disable or enable the button.
1 Answers
Hello Susan,
You can use the following javascript to “turn off” zoom initially during the page load:
You can use the following javascript to “turn off” zoom initially during the page load:
PDFLightViewerApp.zoom.disable( jQuery('.js-pdf-light-viewer') );
After that zoom can be enabled by clicking on the zoom link or by calling:
PDFLightViewerApp.zoom.enable( jQuery('.js-pdf-light-viewer') );
Tried to add it to the page with no luck, where would this go?
You can use the plugin similar to https://wordpress.org/plugins/custom-css-js/ and paste the code there. Also some wordpress themes already have text fields where you could add custom javascript code.
Please login or Register to submit your answer