WordPress.org

Ready to get started?Download WordPress

Forums

WP-Filebase Download Manager
[resolved] Open download link in new window (6 posts)

  1. koushiro
    Member
    Posted 1 year ago #

    Hi, Is there a way to open a downloadable file in a new window? Something like "target="_new""?
    I have some PDFs available for downloaded but I would like it to open in a new window if possible.

    Thanks,
    Josh

    http://wordpress.org/extend/plugins/wp-filebase/

  2. troelschristensen
    Member
    Posted 1 year ago #

    Hi Josh.

    Tried the "Force download" option?

    Kind regards.
    Troels Christensen

  3. Fabian
    Member
    Plugin Author

    Posted 1 year ago #

    You can add target="_blank" to file templates.

  4. die-kerwe
    Member
    Posted 1 year ago #

    I already tried this, but no solution. Where do I have to add the target? Somewhere in WP Filebase options / templates?
    Unfortunately I have absolutely no clue.... :-(

    Thanks in advance & best regards,

    Stefan

  5. computersimple
    Member
    Posted 1 year ago #

    I am trying to do the same thing, I would like the file to open in a new tab or window, I have tried editing template but I am obviously not in the right place as it is not working. I am adding the file to a post using the 'file url' method. my shortcode is

    [wpfilebase tag=fileurl id=1 linktext='Pack for Jail' /]

  6. MIGPRO
    Member
    Posted 1 year ago #

    Hey Fabi, great plugin!

    I too am hoping you will be able to add the option for new window...

    Went into the File Templates and added the target="_blank" code in all the likely locations where I would normally place this command and it does not work.

    Can you be more specific? Do we have to create a totally separate line for that command? There are 3 locations in the code where we have the and I changed them all with no result.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.