1. Home
  2. Knowledge Base
  3. The Digioh Platform
  4. How to Add Links to Any Text in the Campaign Editor
  1. Home
  2. Knowledge Base
  3. Design Editor
  4. How to Add Links to Any Text in the Campaign Editor

How to Add Links to Any Text in the Campaign Editor

What You’ll Learn

  • How to use HTML tags for links
  • How to customize link appearance
  • How to use merge tags for dynamic links

Digioh supports adding links within text elements, form fields, checkboxes, and help text. A common use case is for adding Terms of Service and Privacy Policy links within disclosure text blocks.

You can use the basic HTML/CSS <a> tag to achieve this for any text in the editor. Here is a sample tag you can use:
<a href=’#‘ style=’color:inherit;’ target=’_blank’ > Your Text </a>

Links can be added to text elements via the standard HTML anchor tag

Replace the ‘#‘ with the URL you would like to direct to.

Because Digioh campaigns are located within iFrames on your site, the Target value in the HTML link needs to be set in order for the link to work correctly.  The two options you can use are:

  • target=’_blank’  – This will open your link in a new tab or window.  This is the recommended default value we suggest, as this will allow the user to come back to the page with the campaign experience on it. This is useful for things like Privacy Policy pages.
    An example of the target=’_blank’ opening a link in a new tab
  • target=’_parent’ – This will open the link in the users current browser window.  This is useful for redirecting a user to a page that they should stay on, such as a “Shop All Deals” call to action.

You can use basic CSS to customize the look of the link.  We recommend using ‘Color:inherit;’ as it will keep the text color the same as the rest of your text element. If your brand uses specific colors for links, you can also change by replacing inherit with the hex color you need.
Adding the color:inherit styling to a link
Another common CSS styling is to use is ‘text-decoration: none;’.  By default, links will have an underline on them. If you do not want this you can add that code into the Style section.  Additional CSS values are separated by a semicolon (;) within the single quotes.

Example: style=’color:#FF0000; text-decoration: none;’
Adding styling to links via CSS

Styling Examples

Here are some examples of a valid code setup:

  • <a href=’https://www.digioh.com/privacy-policy‘ style=’color:inherit;’ target=’_blank’ > Privacy Policy </a>
    Example of a styled link
  • <a href=’https://www.digioh.com/customer-stories‘ style=’color:#2cc088; text-decoration:none;’ target=’_parent’ > Explore our customer success stories </a>
    Example of a styled link

 

Updated on February 13, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support