Coupon Block (Pro)

The Coupon block in Ultimate Blocks lets you show a coupon code or a deal on any WordPress post or page, with a discount, title, description, expiration date and a copy or Get Deal button. You can add an affiliate or store link that opens when a visitor copies the code. The Coupon block is a Pro block, so it needs Ultimate Blocks Pro.

Block name in the editorCoupon
PlanPro
Best forAffiliate coupon posts, deal roundups, store promotions, Black Friday and seasonal sales
Live demoSee the Coupon block in action

What you can use it for #

  • Share affiliate coupon codes in reviews and roundup posts.
  • Promote your own store discount codes.
  • List deals that need no code, with a Get Deal button.
  • Hide the code behind a Show Code button that reveals it in a popup.
  • Show an Expired label automatically after the offer ends.

How to add the Coupon block #

  1. Make sure Ultimate Blocks Pro is installed and active (keep the free plugin active too).
  2. Open the post or page in the WordPress block editor.
  3. Click the + (Block Inserter) button.
  4. Search for Coupon and click the block to add it.
Adding the Coupon Block

Add the coupon content #

Click each part of the block and type your own text:

  • Discount: the main offer, for example 30% or 20 USD OFF.
  • Title: what the coupon is for, for example the product or store name.
  • Description: one or two lines with the details or conditions.
  • Code: the coupon code visitors will copy (Coupon type only).
  • Coupon/Deal label: the small tag on the coupon, such as Coupon or Deal.
Add Content to the Coupon Block

Settings tab #

Select the block and open the block sidebar on the right. The Settings tab (gear icon) holds the coupon options:

Configure general settings of the Coupon block

Coupon type and link #

  • Coupon Type: choose Coupon to show a code, or Deal to show a button with no code.
  • Link To Navigate On Copy (Affiliate Link): the page that opens when a visitor copies the code or clicks the deal button. Paste your affiliate or store link here.
  • Get Deal button text: change the text of the deal button (Deal type).
Set a coupon type

Expiration #

  • Expiration Date: pick the last day of the offer from the calendar.
  • Doesn’t Expire: turn this on for offers with no end date. The block then shows Doesn’t Expire instead of a date.
  • Expired Date Label: the text that shows when the coupon date is expired (default: Expired).
Set the expiration date

Hide Coupon and copy options #

  • Click To Copy: visitors click the code to copy it to their clipboard.
  • Hide Coupon: hide the code behind a Show Code button. When a visitor clicks it, a popup shows the code with a copy button and an offer button.
  • Popup Copy Button Text and Popup Offer Button Text: change the text of the two popup buttons (defaults: Copy and Go To Offer).

Tip: For affiliate coupons, add your affiliate link in Link To Navigate On Copy and mark the offer clearly. See how to add affiliate coupons in WordPress for a full walkthrough.

Styles tab #

Switch to the Styles tab (half-circle icon) to change the look of the coupon:

  • Colors: set the color of the title, description, code, discount, label, expiration date and expired date, plus the code hover colors.
  • Backgrounds: solid or gradient backgrounds for the coupon box, the code, the label and the popup buttons.
  • Font sizes: separate sizes for the discount, label, title, description, code, expiration date and expired date.
  • Border: border and border radius for the coupon box and the code, plus the separator line.
  • Dimension Settings: padding and margin.
Stylize the coupon block

Extensions you can use with this block #

Visibility Control: for example, turn on Enable Schedule to show the coupon only during the sale dates.

Visibility control option of the Coupon block

Animation: pick an entrance effect so the coupon catches the eye when visitors scroll to it.

Animation of the Coupon block

Responsive Control: turn on Hide On Desktop, Hide On Tablet or Hide On Mobile to show a coupon only on some devices.

Configure responsiveness for the coupon block

Frequently asked questions #

How do I add a coupon code to a WordPress post?

What is the difference between Coupon and Deal?

Can I hide the coupon code until a visitor clicks?

What happens when the coupon expires?

Is the Coupon block free?

Related docs #

Updated on November 7, 2026

What are your feelings

  • Happy
  • Normal
  • Sad