---
title: "How to Add Coupon Code With Masked Link in WordPress?"
url: https://nexterwp.com/docs/add-coupon-code-with-masked-link-in-wordpress/
date: 2024-12-31
modified: 2026-04-14
author: "Aditya Sharma"
description: "Do you want to create coupon codes with masked links in WordPress? Masked links allow you to hide long affiliate URLs with custom, user-friendly links. This not only makes the..."
image: https://nexterwp.com/wp-content/uploads/2024/12/How-to-Add-Coupon-Code-With-Masked-Link-in-WordPress_-1024x519.jpg
word_count: 317
---

# How to Add Coupon Code With Masked Link in WordPress?

## Key Takeaways

- Nexter Blocks includes a Coupon Code block that allows users to mask multiple links.
- Users can enable the Hide Link toggle to display custom text in the URL when hovering over the coupon code.
- The Coupon Code block requires installation and activation of Nexter Blocks to function properly.

Do you want to create coupon codes with masked links in WordPress? Masked links allow you to hide long affiliate URLs with custom, user-friendly links. This not only makes the links look cleaner but can also improve your click-through rate by providing a more professional and appealing experience for users.

With the Coupon Code block from Nexter Blocks, you can easily mask multiple links.

*To check the complete feature overview documentation of the Nexter Blocks Coupon Code block,* *[click here](https://nexterwp.com/docs/add-a-coupon-code-in-wordpress/).*

***Requirement  - This block is a part of the Nexter Blocks, make sure it's installed & activated to enjoy all its powers.***

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/blocks/wordpress-coupon-code/)

To do this, add the Coupon Code block to the page and follow the steps -

1. Select **Standard** from the **Coupon Type** section.

2. After selecting an appropriate style from the **Standard Style** section, add a title in the **Title** field.

You can leave the **Redirect Link** field blank.

3. Then add your coupon code in the **Code** field. 

4. After that, select **Click** from the **Select Action** section.

5. Then enable the **Hide Link** toggle from the **Extra Options** tab.

6. In the **Link Masking Text** field, add the text you want to show in the URL when hovering over the coupon code. This text will work as the mask for your URL.

7. Then you’ll see a repeater item under the **Open URLs : Single/Multiple** section, open it.

In the **Label** field, you can add a label for the link.

8. Then in the **Link** field, add your actual URL.

You can click on the **+ Add Link** button to add multiple links.

> *Note: If you’ve added any link in the Redirect Link field, that will be masked with your text as well.*

Now if someone hovers over the coupon code it will show your text in the URL but on click it will open your specified URLs. here.

## Frequently Asked Questions

**Q: What should I do if the coupon code block isn't displaying correctly?**
A: If the Coupon Code block isn't displaying properly, ensure that the Nexter Blocks plugin is installed and activated. This block is part of Nexter Blocks, and without it, you won't have access to its features. Additionally, check for any conflicts with other plugins or themes that may affect its functionality.

**Q: What is the best practice for setting up the Link Masking Text?**
A: When setting up the Link Masking Text, choose a descriptive text that clearly indicates the destination or purpose of the link. This helps users understand what to expect when they hover over the coupon code, enhancing user experience and trust.

**Q: What happens if I leave the Redirect Link field blank?**
A: Leaving the Redirect Link field blank means that only the links you specify in the Open URLs section will be active. This is useful if you want to focus solely on the coupon code without redirecting users elsewhere.
