PDF Files open on hover

[ad_1]

Hi! Generally love the code – it’s working great, improving UX 100% on some of our sites!

One of our clients recently had Pre-Render + Moderate enabled however, and was experiencing odd behavior on pages with PDF links. They would open on hover rather than waiting for click. When we changed setting to Conservative this behavior went away.

The format of the links was like this (spaces added to the tag so you can see it not as a link:
< a href="https://linkToOurDoc.pdf" target="_blank" rel="noopener">Our Document< /a >

I found that changing settings to Conservative made it so this behavior with PDF’s doesn’t occur. If you are unable to recreate the issue, let me know and I can turn it back to “broken” again for a short while, or see if I can replicate and share in our staging environment.

FYI We are using Divi as a pagebuilder but otherwise have few plugins and nothing non-standard. Since we have the issue resolved, there’s no need for immediate response but wanted the issue to be flagged for dev to review. Thanks!

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer