Optimole breaking shortcode button functionality
-
I have a page on my site where my logged-in users can download high quality images needed for various purposes. On this page, I have a small thumbnail of the larger images along with some buttons that will directly download the higher quality image on-click of the button. These buttons are created using shortcode. The entire point of the image download feature is to have a very high image quality that can be used on media other than online (posters, apparel, vehicle wraps, etc.), so having those downloaded images at the highest resolution possible (and hence, very large file sizes) is important.
I noticed that, after awhile, on-click of the button, my images would no longer download, but simply “open in the same window”. This isn’t the behavior I want. After some research, I realized that the on-click behavior of the button is now opening a file that has been optimized by Optimole, with a completely new link that isn’t what I have the button-click linking to. As I’m unsure if it’s the Image Handling or Lazy Load feature of Optimole that is casuing this, when I simply disable both in the settings, the direct-download behavior of the buttons returns to normal.
When I re-enable both in Optimole, the undesired behavior returns, but not until sometime later, almost as if it takes some time for Optimole to do a “sweep” of all the images on my site.
I would prefer to keep the benefits of using Optimole and simply turn off the image handling for the single “Download” page that is causing this issue.
I’m unable to provide a link to the page as it is only accessed by logged-in users, however I have some screenshots of what I am referring to.
Above is a screenshot of the URL that is being requested when Optimole is enabled. When clicking on the button the arrow is pointing to, the image simply opens in the same window, without actually downloading.
Above is a screenshot of the correct URL when Optimole is disabled for the site. The image directly downloads properly when clicking the button the arrow is pointing to.
Thank you for any help you can provide.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.