Skip to content

How to Add a Coupon Code in WordPress?

Key Takeaways

  • Nexter Blocks Pro incluye el bloque Coupon Code, y se activa en Nexter > Blocks dentro del panel de WordPress.
  • Standard usa el campo Code y Redirect Link, y ofrece cinco estilos Standard para mostrar el código con un botón o abrirlo en un popup.
  • Peel, Scratch y Slide Out guardan el descuento en Back Description, porque el campo Code solo funciona con Standard.
  • Scratch dibuja un canvas real sobre la tarjeta, usa Fill Percent para definir cuánto se limpia antes de mostrar el código y no funciona para usuarios que usan teclado.
Table of Contents

A discount code printed as plain text gets skimmed past.

This block makes claiming one an action — a button that reveals the code, or a card the visitor peels, scratches or slides open.

Before You Start

  • Edition: Pro — the Coupon Code block is part of Nexter Blocks Pro.
  • Block to enable: Coupon Code, switched on under Nexter > Blocks in your WordPress dashboard.
  • The code itself, and the page you want people sent to.

Steps

  1. Add the Coupon Code block and click Design from Scratch.
  1. Set Coupon Type to Standard.
The Coupon Type setting with Standard, Peel, Scratch and Slide Out
  1. Pick a Standard Style — there are five.
The Standard Style setting
  1. Put your discount code in Code and the destination in Redirect Link.
The Code field
  1. Choose Select Action — reveal the code in place, or open it in a popup.
The Select Action setting
  1. Publish and click the coupon.

The code is in the page before anyone clicks. Measured on the front end: both the button label and the code are in the markup from the start, just hidden until the reveal. This is a presentation effect, not a way to gate a discount — anyone reading the page source has it.

The Four Coupon Types

Coupon TypeWhat the visitor doesGuide
StandardClicks a button and the code appears—
PeelPeels back a corner to find the codePeel-off card
ScratchScratches a surface awayScratch card
Slide OutSlides a panel asideSlide-out card

Where the Code Goes

This trips people up, because the editor does not say so. The Code field is used by the Standard type only. On Peel, Scratch and Slide Out the card has a front and a back, and the discount belongs in Back Description.

Coupon TypePut the code in
StandardCode
Peel, Scratch, Slide OutBack Description (or a pattern on the back)

How It Behaves

  • A Standard coupon is a link. The whole thing is an <a href> pointing at Redirect Link, so clicking it takes the visitor to your site. See the redirection guide for same tab or new tab.
  • Select Action decides where the code appears — in place, or in a popup with its own title, description, copy button and visit button. See the discount popup guide.
  • Scratch draws a real canvas over the card, and Fill Percent sets how much has to be cleared before the code shows.
  • Save In Cookies remembers that a visitor already revealed the code, so they are not asked to do it again.
  • The front and back of a card can be a pattern instead of plain text — see showing a promo code in a pattern.

Limitations

  • Pro only.
  • The code is in the page before anyone clicks. Measured on the front end: both the button label and the code are in the markup from the start, just hidden until the reveal. This is a presentation effect, not a way to gate a discount — anyone reading the page source has it.
  • The Code field is ignored by three of the four types, as above. A code typed there for a Peel card simply never appears.
  • Hide Link (Beta) changes the click. With it on the coupon reveals the code but no longer navigates — see the masked link guide.
  • Scratch needs a pointer or a finger to drag. It works on touch, but not for anyone using a keyboard.

Troubleshooting

My code does not appear on the card

You have typed it into Code, which only the Standard type uses. Put it in Back Description instead.

Clicking the coupon takes people away from the page

That is the Redirect Link, and it is how the Standard type is meant to work. Use the popup action if you would rather keep them on the page.

People can see the code without clicking

They can — it is in the page source from the start. Treat the reveal as presentation, not protection.

The block is missing from the inserter

Switch Coupon Code on under Nexter > Blocks.

Coupon Code switched on in the Nexter Blocks list

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

Why does my coupon code not show up on the card in WordPress?

The usual cause is putting the code in the wrong field. In Nexter Blocks Pro, the Standard type uses the Code field, but Peel, Scratch, and Slide Out store the discount in Back Description instead. That matters because those card types have a front and a back, so the visible reveal comes from the back side. If you typed the code into Code for a Peel card, it will never appear.

How do I keep a coupon click from sending visitors to another page?

A Standard coupon is built as a link, so its default behavior is to send people to the Redirect Link. If you want them to stay on the page, use Select Action to open the code in a popup instead of using the link behavior. Nexter Blocks Pro also has a Hide Link beta option that changes the click so it reveals the code without navigating.

Can people see a WordPress coupon code without clicking it?

The reveal is presentation, not protection. The page content says both the button label and the code are already in the front-end markup from the start, just hidden until reveal. That means anyone reading page source can still find it. Nexter Blocks Pro is useful for making claiming feel interactive, but it does not gate access to a discount.

What coupon type should I use for a reveal button versus a peel or scratch card?

Standard is for a button that reveals the code in place or in a popup. Peel works like peeling back a corner, Scratch uses a scratch-away surface, and Slide Out moves a panel aside. The choice is mostly about presentation and user interaction, since all four are just different ways to expose the discount code on the page.

Why is my WordPress coupon block missing from the block inserter?

The Coupon Code block is part of Nexter Blocks Pro and has to be switched on under Nexter > Blocks in your WordPress dashboard. If it is disabled there, it will not show up in the inserter at all. That makes this more of an enablement issue than an editor bug.

Does the scratch coupon card work with keyboard users?

Scratch needs a pointer or finger to drag, so it works on touch but not for anyone using a keyboard. That makes it fine for mobile-style interaction but weak for keyboard-only access. If accessibility matters for your layout, Standard with reveal or popup behavior is usually easier to use than Scratch.

Last reviewed: September 15, 2026

Related Docs