Toolbar Not Working Correclty

QuestionsCategory: PDF Light ViewerToolbar Not Working Correclty
AvatarCornerstone asked 1 year ago

The < > navigational arrows don’t seem to be working on my toolbar. The page turn does work but when you turn a few pages and then hit the nav arrows it goes back to page 1.

supportsupport replied 1 year ago

Hello Cornerstone, could you please try to turn off hash navigation ( ) on plugin’s settings page ( /wp-admin/options-general.php?page=pdf-light-viewer ) and see if that will help?

AvatarCornerstone replied 1 year ago

Unfortunately, this did not resolve the toolbar issue. Is there anything else that might be going on? Thanks!

Avatarsuper replied 1 year ago

We are adding popup feature to the 0.1.7 PRO Addon version. Let's see if it will work for you. The plugin just submitted via Codecanyon. Once it will be approved, you should receive an email notification. Please let me know when you'll have a chance to install it. After that you could use new shortcode: [pdf-light-viewer-popup id="576"]Open popup[/pdf-light-viewer-popup]. Here is how it looks on our side

AvatarCornerstone replied 1 year ago

I can’t wait to give it a try! I really appreciate the help with this feature and will be updating my previous review for PDF Light Viewer on the EnvatoMarket to reflect this.

AvatarCornerstone replied 1 year ago

I’ve updated the plug-in and have applied the shotcode for the new pop-up. I’ve also disabled my previous pop-up builder in case that would be conflicting. The pop-up is working but the toolbar is still having trouble. To verify that it wasn’t attributed to any customization I have also installed the PDF Light Viewer on a fresh install and it’s operating the same way. Is there something with the Divi theme that’s conflicting by chance?

1 Answers
Best Answer
Avatarsuper answered 1 year ago

Thank you for examples. Yes, looks like we have some hashchange conflict with the Divi theme.
Divi theme is trying to handle any link tag, which href attribute is started from ‘#’ but not equal the ‘#’. Thus it conflicts with PDF Light Viewer controls.
To solve this issue I can see two workarounds right now:
First you can modify the file ( and/or ) and replace this code:


by this code:


Second, you can try move and down in the header to be under the
Both ways could require modifying of the theme code. So in case of theme update these changes should be re-applied. Unfortunately I cannot see any more accurate solutions so far.

AvatarCornerstone replied 1 year ago

Modifying the code did the trick! Thank you for helping me determine the issue within the DIVI theme.

Avatarsuper replied 1 year ago

I was glad to help you!