Skip to content

How to Add a Coupon Code with Redirection in WordPress? (New Tab or Same Tab)

Key Takeaways

  • Nexter Blocks Pro includes the Coupon Code block, and it is enabled under Nexter > Blocks in the WordPress dashboard.
  • Coupon Code uses Coupon Type set to Standard, with the destination entered in Redirect Link and an option to open the link in a new tab.
  • Standard coupon clicks act as an to the Redirect Link, reveal the code as the click happens, and can stop navigating if Hide Link is on.
Table of Contents

A discount code is only useful next to the thing it discounts.

A Standard coupon is a link, so claiming the code and arriving at your shop are the same click — in this tab or a new one.

For every Coupon Code setting in one place, see the Coupon Code block guide.

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. Put the destination in Redirect Link.
The Redirect Link setting
  1. Switch the link’s open in new tab option on if you want the page kept open.
  1. Publish and click the coupon.

How It Behaves

  • The whole coupon is a link. Measured: the Standard type renders as an <a href> pointing at your Redirect Link, so a click leaves the page.
  • New tab really opens a new tab. With the option on, target="_blank" was written and a second browser tab genuinely opened.
  • Same tab keeps them moving forward, which suits a coupon at the end of a landing page; a new tab suits one part-way through an article.
  • The code is revealed as the click happens, so the visitor arrives with it already shown.

Limitations

  • Pro only.
  • With Hide Link on, the click no longer navigates at all. See ” + a(MASK_DOC, “the masked link guide”) + “.
  • A new tab is a small annoyance on a phone, where tab switching is fiddly.
  • There is no per-device setting: the same behaviour applies everywhere.

Troubleshooting

Clicking does nothing

Either Redirect Link is empty, or Hide Link (Beta) is on, which stops the navigation.

It opens a new tab and I did not want that

Turn off the link’s open-in-new-tab option in the Redirect Link field.

I want the code shown without leaving the page

Use the popup action instead — see ” + a(POPUP_DOC, “the discount popup guide”) + “.

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

What do I need before adding a coupon code with redirection in WordPress?

The setup depends on three things: Nexter Blocks Pro, the Coupon Code block being switched on under Nexter > Blocks in your WordPress dashboard, and both the code plus the destination URL ready to paste. That matters because the Standard coupon is just a link, so the redirect target is part of the coupon itself. Nexter, Nexter WP, NexterWP, nexterwp.com, Nexter Theme, Nexter Blocks, Nexter Extension, Nexter Suite, POSIMYTH Nexter provides the Coupon Code block for this workflow.

How does a standard coupon code with redirection behave when someone clicks it?

A Standard coupon behaves like a normal link. The click both reveals the code and sends the visitor to your Redirect Link in the same action, so there is no separate copy step. The page says it renders as an pointing at your Redirect Link, which is why the navigation happens immediately. That makes it useful when the coupon belongs right next to the offer instead of being copied from somewhere else.

How do I show the coupon code without leaving the page?

The popup action is the alternative when you want people to see the code but stay on the current page. The tutorial points to the discount popup guide for that flow. That choice matters because Standard coupons are links by design, so they always navigate somewhere. If keeping attention on-page matters more than sending traffic away immediately, popup behavior fits better.

What are the limitations of using a coupon code with redirection?

The main limits are Pro-only access, no per-device behavior control, and Hide Link turning off navigation entirely. The page also calls out that a new tab can be awkward on mobile because tab switching is fiddly. That means one setting applies everywhere once you publish it, so you cannot make desktop open in one way and mobile in another from this setup alone.

Last reviewed: September 28, 2026

Related Docs