- This topic has 2 replies, 2 voices, and was last updated 10 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › General Stuff › Generic PDF download opening in new window
I’m using Simple Download Monitor in my site, only for downloading PDF files.
At any upgrading in the file sdm-shortcodes.php I have to change the following:
//*** Generate the download now button code ***
$window_target = '';
if (!empty($new_window)) {
$window_target = 'target="_blank"';
}
with this horrible solution:
//*** Generate the download now button code ***
$window_target = 'target="_blank"';
if (!empty($new_window)) {
$window_target = 'target="_blank"';
}
I’m asking if there is no better way for obtaing the same result, i.e. having ALL downloads showing in a new frame.
Thank you.
All you have to do is use the “new_window” parameter in your shortcode. Here is an example usage:
[sdm-download id=”X” fancy=”1″ new_window=”1″]
Check the following page for documentation and explanation:
http://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin
Thank you. I had lost this possibility.