Ad for Tradeomics

Geekee Download Button Plugin

@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.

Geekee Download Button

Installation Instructions:

  1. Download then unzip file.
  2. Put the “geekee-homepage” folder inside your “wp-content/plugins” folder.
  3. Activate the plugin in your Plugins Admin
  4. Add this code to your template:
    <?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.

How to use:

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" ]

Changelog:

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!


  • http://www.tevarra.net tevarra

    THANK YOU for the time and effort that you’ve put into this useful little plugin. Works great on a client’s site. I am using the shortcodes (no spaces in between brackets: [shorcode]) in a text widget + Widget Logic plugin for newsletter download buttons for different download links on different pages. Here it is in action: http://tinyurl.com/ydv94qx .

  • http://arcnerva.com Arcnerva

    Very cool plug-in. I have been looking for something like this for a while now. This will definitely save me some time. Thanks guys.