WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
Download button open in new window (4 posts)

  1. whateverfree2
    Member
    Posted 1 year ago #

    Hello

    I use this great plugin for my website http://www.whateverfree.com today and want a new window open when user click Download button. Below is what I did.

    In file plugins/download-monitor/page-addon/download-monitor-page-addon.php
    Line 625

    if (!isset($download->meta['hide_download_button'])) $page .= '<p>id.'" format="{url}"]').'" class="download-button">'.$dbutton_text.'</p>';

    Replace with the code below

    if (!isset($download->meta['hide_download_button'])) $page .= '<p>id.'" format="{url}"]').'" class="download-button">'.$dbutton_text.'</p>';

    Hope that's help you save your time.

    http://wordpress.org/extend/plugins/download-monitor/

  2. Kristof Bernaert
    Member
    Posted 1 year ago #

    Hi

    I think you pasted the same code as the one you wanted to replace.

    Kristof Bernaert

  3. whateverfree2
    Member
    Posted 1 year ago #

    I saw that but I can't edit the post, line 625 add target="_blank" before href

  4. fritz214
    Member
    Posted 10 months ago #

    @whateverfree2

    do you have Idea how to fix the download button on [download_page] because it can't download when I click the button

    if (!isset($download->meta['hide_download_button'])) $page .= '<p><a href="'.do_shortcode('[download id="'.$download->id.'" format="{url}"]').'" class="download-button">'.$dbutton_text.'</a></p>';

    Thanks for help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic