click opens a new Tab/Window.

in Download Manager Free

Viewing 17 posts - 1 through 17 (of 17 total)
Jul 17, 2019 at 3:05 pm
#109925
Member
Beyondforce
OP

Hey Guys,

I have created a new file to download from a URL (google drive).
Now, when I click on the button to download the file, it takes me away from my current page instead of opening a new tab!

How can I force a click on a button to open in a new Tab/Window?

Thanks.

Jul 17, 2019 at 7:00 pm
#109935

Hi, you can try the following shortcode in a page

[wpdm_direct_link id="Package ID" target="_blank" label="Download Me!"]

Jul 17, 2019 at 7:03 pm
#109936
Member
Beyondforce
OP

Unfortunately, it didn’t work 🙁

Jul 20, 2019 at 5:33 pm
#110032

Hi, Could you please share your Admin login temporarily in a private reply so that I can have a look inside?

Jul 20, 2019 at 5:43 pm
#110034
Member
Beyondforce
OP
This reply has been marked as private.
Jul 20, 2019 at 5:54 pm
#110040
This reply has been marked as private.
Jul 20, 2019 at 5:56 pm
#110041
Member
Beyondforce
OP

Just login in the front page and you will see the admin tool bare.

Jul 21, 2019 at 3:09 am
#110042
This reply has been marked as private.
Jul 21, 2019 at 3:54 am
#110043
Member
Beyondforce
OP

Please check out the second button (brown), it’s a link to a google drive file:
https://forum.tesreg.com/community/main-forum/download-files/

This is the shortcode: [wpdm_button_template id=74 target=”_blank” style=”coffee” align=”center”]

Jul 21, 2019 at 6:48 am
#110046

Just FYI
For shortcode like below, target=”_blank” is not a supported option!

[wpdm_button_template id=72 target="_blank" style="green" align="center"]

Jul 21, 2019 at 6:51 am
#110048
Member
Beyondforce
OP

I don’t understand… What is the difference between your shortcode and mine?

Jul 21, 2019 at 7:00 am
#110050
Member
Beyondforce
OP

Do you mean I can’t use target=”_blank” with a button?

Jul 21, 2019 at 7:53 am
#110053
Keymaster
Shahjada
Staff

@beyondforce, the button template add-on doesn’t have any parameter named target. Please use:

[wpdm_direct_link class="btn btn-success btn-lg" id="74" target="_blank" label="Download"]

Jul 21, 2019 at 8:24 am
#110054
Member
Beyondforce
OP

What a shame… I wanted to use the button 🙁

Jul 21, 2019 at 12:40 pm
#110057

Hi, See in my earlier msg I have mentioned target is not supported

Jul 21, 2019 at 1:02 pm
#110059
Member
Beyondforce
OP

Okay, thanks for trying to help.

Jul 21, 2019 at 1:10 pm
#110060

You are most welcome!

Viewing 17 posts - 1 through 17 (of 17 total)

The topic "click opens a new Tab/Window." is closed to new replies.