Skip to main content
alan.edwards
Contributor ⭐️⭐️⭐️
July 24, 2024
Solved

Subscribe button on custom pages

  • July 24, 2024
  • 11 replies
  • 220 views

Is there any possibility of adding a subscribe button (of a category) on to a custom page that has the content on a dynamic content widget?

 

Trying to reduce click as i want users to see my custom page and have the ability to subscribe to see new content without the need to visit the underlining content page.

 

Any thoughts would be greatly appreciated.

Best answer by jvdc

Actually, I managed to create a button on custom page to subscribe users to a specific category.

Add an HTML widget and add the following piece of code in it:

<div data-view="Tooltip" class="tooltip tooltip--day forum-subscribe-button" data-mn="ItemView" data-mn-app="frontend">

  <button class="btn--toggle qa-forum-subscribe-button js-tooltip-trigger tooltip-trigger js-tooltip-trigger"

          data-component="subscribe"

          data-data='{

            "isGuest": 0,

            "url": "/subscribers/subforum/3",

            "strings": {

              "subscribed": "Unsubscribe",

              "unsubscribed": "Subscribe"

            }

          }'

          aria-haspopup="true">

    <span class="text">Subscribe</span>

    <span class="loader"></span>

  </button>

  <div class="tooltip__content tooltip__content--subscribe js-tooltip-content position--bottom">

    <i class="arrow"></i>

    When you subscribe we will email you when there is a new topic in this category

  </div>

</div>

 

  • Replace 3 with your actual category ID.

  • Example: /subscribers/subforum/7 for Category ID 7.

11 replies

Contributor ⭐️
July 24, 2026

Hi ​@alan.edwards 
You are right that code block is not doing action as Subscribe button, any idea how we can activate Subscribe button for “knowledge Base” type page