---
title: "Add feedback link to the reader feedback widget"
id: "add-feedback-link-to-the-reader-feedback-widget"
project: "ClickHelp Knowledge Base"
url: "https://docs.clickhelp.com/articles/clickhelp-knowledge-base/add-feedback-link-to-the-reader-feedback-widget"
updated: 2026-09-11T05:23:36Z
---

# Add feedback link to the reader feedback widget

Expanding the [Reader Feedback Widget](https://clickhelp.com/software-documentation-tool/user-manual/the-was-it-helpful-widget.html) functions by adding an email link for getting extra feedback from your users will allow you to receive not only a plain number as feedback but also additional reasoning for the vote.

To add the feedback link to the Reader Feedback Widget, follow the steps:

## 

1. Go to the **Reader Interface** section of your portal’s settings, and open the **Portal Branding script** file for editing (you will need to create one if you don’t have it):
![](/resources/Storage/clickhelp-knowledge-base/screenshots/add-feedback-link-to-the-reader-feedback-widget/portal-branding-script.png)
2. Paste the following code there, specify the email address you want the feedback to be sent to and save the file:

```javascript
// Declare event handler
function appendEventHandler(node, type, handler, disconnect) {
    function wrapHandler(event) {
        handler(event || window.event);
    }
    var wrapHandler = handler;
    if (typeof node.addEventListener == "function") {
        node.addEventListener(type, wrapHandler, false);
        if (disconnect) return function () {
            node.removeEventListener(type, wrapHandler, false);
        };
    }
    else if (node.attachEvent) {
        node.attachEvent("on" + type, wrapHandler);
        if (disconnect) return function () {
            node.detachEvent("on" + type, wrapHandler);
        };
    }
}


// Call function on window onload with eventhandler
appendEventHandler(window, "DOMContentLoaded", function () {
    var feedbackWidget = document.getElementsByClassName("ArticleEditor_readerFeedbackContainer");
    if (feedbackWidget.length != 0) {
        feedbackWidget[0].appendChild(CreateFeedbackLink());
    }
});

function CreateFeedbackLink() {

    // Create link element.
    var a = document.createElement('a');

    // Create the text node for link element.
    var link = document.createTextNode("Submit feedback");

    // Append the text node to link element.
    a.appendChild(link);

    // Set the title.
    a.title = "Submit feedback";

    // Set the email and add a subject, referencing the current URL of the page the user triggered this link from.
    a.href = "mailto:someone@yoursite.com?subject=Feedback on topic: " + window.location.href;

    // Set the class.
    a.className = "feedback-link";

    return a;
}
```

3. Return to the **Reader Interface** section of your portal’s settings and open the **Portal Branding CSS** file for editing:
![](/resources/Storage/clickhelp-knowledge-base/screenshots/add-feedback-link-to-the-reader-feedback-widget/portal-branding-css.png)
4. Paste the following code there:

```css
.feedback-link {
  display: block;
}
```


After that, you will get a **Submit feedback** email link added to the Reader Feedback widget, like this:
![](/resources/Storage/clickhelp-knowledge-base/screenshots/add-feedback-link-to-the-reader-feedback-widget/submit-feedback.png)

| ![](/resources/Storage/clickhelp-knowledge-base/ClickHelp%20Product%20Documentation_Files/Images/quick-parts/icon-info.svg) | Note |
| --- | --- |
| The email link has its own custom CSS class, so you can style it the way you want. |

* * *
  
 *The information and examples in this Knowledge Base are presented "as is" and for informational purposes only — we do not provide Technical Support for it. Neither can we guarantee that the examples provided will work as intended in your particular scenario, nor do we provide assistance in customizing these examples to fit your use case.*