Custom Link Attributes

Table of Contents

Share This Post

🧩 Purpose

This feature allows you to add custom HTML attributes directly to link elements (such as buttons or icons) in Elementor. It’s perfect for enhancing functionality, accessibility, SEO, or integrating with external tools using attributes like download, rel, title, or data-*.


🛠️ How to Add Custom Attributes

  1. Select the widget that includes a Link field (e.g., Button, Icon).

  2. In the widget’s content panel, locate the Link section and click the settings/gear icon.

  3. Locate the Custom Attributes input, where you enter each attribute in the format:

    key|value

    Example: To add rel="sponsored", enter:

     
    rel|sponsored
  4. For multiple attributes, separate them with commas:

     
    download|filename.pdf,title|Learn more about product
  5. Ensure the Link field contains at least a “#” or a URL — especially important if you’re relying on a title attribute to show a tooltip.


✨ Common Uses

  • Download Links: Add the download attribute to prompt file downloads (e.g., download|file.pdf).

  • SEO/Relationship Tags: Use rel attributes for SEO (e.g., rel|noopener noreferrer sponsored).

  • Tooltips: Add a title attribute to provide a hover tooltip.

  • Custom Data or ARIA Attributes: Embed data-* attributes for custom scripts or accessibility enhancements.


⚠️ Important Notes

  • Not all widgets support custom link attributes; they’re only available in those with an actual Link field.

  • JavaScript-based attributes, such as onclick, are not allowed for security reasons.

  • Title-based tooltips will only display if the link field isn’t left empty (must contain at least a placeholder).


✅ Summary of Capabilities

CapabilityExample Usage
Trigger file download`download
Add SEO relationships`rel
Provide tooltip`title
Embed custom data`data-id

This feature gives you precise control over how links behave, appear, and interact—like prompting downloads, improving accessibility, boosting SEO, or integrating with JavaScript.

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Icons vs. Text in UI/UX: Finding the Sweet Spot in Digital Communication

Typography & Design Systems: Building the Invisible Architecture of Clarity and Trust

The Complete Guide to Choosing the Perfect Color Scheme for Your Website

Words in Motion: Why Animated Typography Rules the Digital Age

The Complete Blueprint to Building a Powerful Brand Identity

Wireframing Unlocked: The Secret Architecture Behind Seamless Digital Products

Our Web Experts are ready — we just need a few more details

Let's Start Today - Super low prices - Get your Custom designed and Feature rich website