Co-Founder of Tradeomics. Interactive Designer & Developer @CJRWinteractive. Husband. Father of a beautiful 3 yr old girl.
@brewernA collection of code, insight, tips & tricks. Mostly on design, jQuery, WordPress, Drupal, Rails, & the occasional random thought.
@tevarra suggested that I make my download button short code into an actual plugin. Great idea, so I did.
The button can either be an image, or a styled text button. The styled text button does inherit some styling that I have setup as a base. Such as padding and rounded corners. But if you really want full control you can disable the styles and write your own within the plugin options page.

<?php echo display_geekee_dbutton_content(0,"yourfileurl.zip"); ?>
or use the short code in a page, post, or text widget: [ download href="yourfileurl.zip" ]
Remove spaces within the outside of the brackets.
Use in Template:
<?php echo display_geekee_dbutton_content(0, $link, $disable=false); ?>
Short Code:
[ download href="path/to/your/file.zip" ]
or add unique tracking or title
[ download href="path/to/your/file.zip" title="Download Me" track="/downloadme" ]
1.2 Feature: added the ability to use “class” in the short code. For css styling per button.
1.1.1 Fix: The CSS Styles TextArea was escaping quotes on save and display, breaking the css code.
1.1 Feature: Added the ability to use unique titles and tracking per short code
Share your ideas and suggestions below!