Promo Code Banner Above EDD Purchase Buttons
Shows a small promotional banner with a discount code above every Easy Digital Downloads purchase button during a sale.
Opens WPIDE on
Code
<p class="wpide-edd-promo" style="margin:0 0 .75em;padding:.5em .75em;border-left:4px solid #d63638;background:#fcf0f1;font-size:.95em">
<strong>Black Friday:</strong> use code <code>BF30</code> at checkout for 30% off.
</p>
Notes
Create the code in Downloads > Discounts and deactivate this snippet when the sale ends.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.