Home>Support>Button Destination Url

Button Destination Url

Hi folks,
I was wondering if there was a way to create a link to media content – say I wanting user to download a PDF file etc. So rather than page URL to actually select a item form my media library

Thanks in advance for any help

Darron

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 3 days ago Andrew Misplon
    Hi, I Work Here

    Hi Darron

    Not that I know of. You can link the media url but it will open if users click on it. You’d need to direct users to right click save as, in order to download the file directly.

    Let me take a quick look around for an alternative.

  2. 9 years, 3 days ago Andrew Misplon
    Hi, I Work Here

    This plugin has a force file download option:
    https://wordpress.org/plugins/easy-media-download/

    Perhaps fire up a test page and give it a try?

  3. 9 years, 3 days ago graffig

    Hi Andrew
    Many thanks for taking the time to get back to me.

    Just trying to source an alternative to clients having to go into the media library, copy the url of the pdf file and come back into page builder, paster url etc

    He’s not the most tech savvy user out there :)

  4. 9 years, 3 days ago graffig

    just trying right now – thanks

  5. 9 years, 3 days ago Andrew Misplon
    Hi, I Work Here

    I hear you. Not sure we can get around the work flow of going to the Media Library and copying the URL from the right column meta box, might be a bit of a WordPress limitation there.

    Let me know how the plugin goes.

  6. 9 years, 3 days ago graffig

    Hi Andrew
    Just realised I’ve tested that in the past – looked at too many alternatives :)

    Again, the problem being that you have to have the shortcode to hand to paste into any post [easy_media_download url=”http://example.com/wp-content/uploads/file.zip”] and manipulate therein.

    With this version I might a well send client to media library.

    There is another I’m testing: https://wordpress.org/plugins/download-manager/ which add a download button in the editor backend, however the only slightly annoying element is that you have to create the download file first and asign category etc via the plugin dashboard

    Will keep searching

    Take care

    Darron

  7. 9 years, 3 days ago Andrew Misplon
    Hi, I Work Here

    Hope you find something that improves the workflow. Thanks for sharing your feedback here.

    All the best.

  8. 9 years, 3 days ago graffig

    many thanks Andrew – could you tell me how to mark thread resolved :)

  9. 9 years, 3 days ago Andrew Misplon
    Hi, I Work Here

    For sure. If anything else SiteOrigin comes up, let us know.

    (I’ll mark the topic as resolved – thanks again :) )

  10. 8 years, 7 months ago Nassim Elboustani

    Hi there,

    I asked myself the same question, about why there is no option to make a button download after uploading a media (not image).

    Well hope this help you guys, I have just used a wp function:

    array(
    ‘pdf_file’ => array(
    ‘type’ => ‘media’,
    ‘label’ => __(‘Choose the pdf to download on button click’, ‘edrd-widgets-bundle’),
    ‘choose’ => __( ‘Choose pdf’, ‘edrd-widgets-bundle’ ),
    ‘update’ => __( ‘Set pdf’, ‘edrd-widgets-bundle’ ),
    ‘library’ => ‘application’, (Still dont know why ‘file’ is not working, anyway docs. should be modified)
    ),

    ————————–

    <a class="btn" href="” download>Download link!

    // The download attribute is html5.
    // Not supported by IE or Safari
    // You can just use some javascript to do so.

    Hope it help you guys

    Thanks for the awesome siteorigin plugin.

    Big up!

  11. 8 years, 7 months ago Nassim Elboustani

    Sorry my last post did not display the php parts :(

    php file

    //WP function
    $href = wp_get_attachment_url(wp_kses_post($instance[‘pdf_file’]));

    ———-

    Downnload link!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More