This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Button Destination Url

Resolved 11 replies pluginplugin-page-builder
10 years ago · Last reply by Nassim Elboustani 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

11
  1. Andrew Misplon Staff 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago

    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. graffig 10 years, 4 months ago

    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. graffig 10 years, 4 months ago

    just trying right now – thanks

  5. Andrew Misplon Staff 10 years, 4 months ago

    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. graffig 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago

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

    All the best.

  8. graffig 10 years, 4 months ago

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

  9. Andrew Misplon Staff 10 years, 4 months ago

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

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

  10. Nassim Elboustani 10 years, 12 hours ago

    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. Nassim Elboustani 10 years, 11 hours ago

    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.

Have a different question or issue?

Start New Thread