Feature request for additional attributes
-
Hi Ashley,
I would like to ask you if you could possibly add two more attributes for
[ddownload]
shortcode:1. Target
This could be the same functionality as for normal html anchor where I think everybody needs just two options – self (default) and blank to open the link in a new window/tab.
Example:
[ddownload id="123" text="%title% (%ext%, %filesize%)" target="blank"]
Output:
<a href="https://example.com/?ddownload=123" target="_blank">Document name (PDF, 234 kB)</a>
2. Title
The option to add title attribute to the generated
<a>
where it could be nice if that worked with wildcards.As I mostly use text link as an output type for downloads, it would be great to have the opportunity to set these attributes as necessary.
Example:
[ddownload id="123" text="Download (%ext%, %filesize%)" title="%title%" target="blank"]
Output:
<a href="https://example.com/?ddownload=123" title="Document name" target="_blank">Download (PDF, 234 kB)</a>
Thank you for considering this for next updates.
Cheers,
Peter
- The topic ‘Feature request for additional attributes’ is closed to new replies.