WordPress Business Themes › Forums › General Discussion › How to make a Download Link to a downloadable item in Directory Theme 8.9.7
May I ask if someone knows the way to make a Download Link to a downloadable item in Directory Theme 8.9.7 with PP themes please,
And merry Xmas to you all
Thanks in advance
As far as I’m aware a custom solution or at the least a custom form with the correct parameters.
You’re probably already aware, but here’s an example just in case:
<form method="post" action="<!-- YOUR MAIN URL -->/index.php" target="_blank" style="margin:0px;">
<input type="hidden" name="pid" value="<!-- YOUR POST ID -->" />
<input type="hidden" name="free" value="1" />
<input type="hidden" name="purchased" value="1" />
<input type="hidden" name="downloadproduct" value="1" />
<button type='submit' class='btn btn-primary'>Download</button>
You can alter it and/or styling to display it as just a link and not a button.
This is actually one of those things I’ve been wanting to add into a little helping type plugin I’ve been working on. I’ve just been hesitant on adding any new functionality with the release of v9 around the corner.
You can look for some sort of download/protector plugin.
Attached is a plugin I’ve used for a long while that has worked fine for me without any problems, HOWEVER, it is an older plugin and no longer supported by the author.
It’s relatively straight forward and you can put the files to be where ever and/or set the location of them..
Wait… what’s the file type of the “downloadable” item in the DT?
How do you set the items to be downloadable?
I’m still not sure what you’re looking for.
< a href="FULL_URL_TO_ZIP" class="btn btn-default" role="button">Download File</ a>
Are you needing something as simple like this or integrated with the theme?
Note: Had to intentionally add an extra space at the beginning, and end, of the ‘a’ tag to display properly.
that above doesnt work at all.
Here is what I found works
GET FILE NOW
This is it hopefully
< class="btn btn-primary btn-lg" href="www.web_link_here.com">GET FILE NOW</ a>
Thanks for sharing
“This is it hopefully”
You do realize that what you put is the same thing, right? You’re funny. 😉
I can probably help you with what you’re attempting to do, but you would need to provide more information on EXACTLY what you’re trying to do other than asking for a button to download a file.
What ever works best for you, was just trying to help.
Submit your feature requests to our ideas board and it could be included in a future theme update.
or contact our support team