How to create widgets with AnnounceKit

AnnounceKit Widgets and Features

One of the key features of AnnounceKit is its fully customizable widgets, which you can embed on your website or app to display your announcements and gather feedback.

AnnounceKit widgets let you choose a layout, a color palette and fonts to match your branding. You can also add custom CSS to change the appearance further. This way the widget fits into any website or app and looks like a natural part of its interface.

The widget comes with an attention-grabbing element called a Launcher that makes your widget more visible. A launcher is a small element displayed on your page that opens your widget when someone clicks it.

Widgets can also be customized further with code, through the widget API.

How to create and set up a widget

You create and manage your widgets on the Widgets page. It lists each widget with its type, how it opens, its version and when it was created, and the New widget button is at the top right. When you have reached your plan's widget limit, the page tells you so, and you need to remove a widget before you can create a new one.

The Widgets page under Engage, listing widgets with their Type, Opens as, Version and Created columns, and the New widget button

1. Create a new widget

  1. In the sidebar, under Engage, open Widgets.
  2. Click New widget. The Widget Configuration page opens on the General Settings tab.
  3. Type a Widget Name.
  4. Pick a Layout: Modern (a layout with better navigation between your posts, feature requests, roadmap and more) or Classic (a layout focused on your changelog feed).
  5. With the Classic layout, pick a Widget Type: Sidebar, Popup, Modal, Embed or Direct Link. The Modern layout always opens as a sidebar.
  6. Pick the Landing Page, the page the widget opens on, such as Posts or Public Feature Requests.

Here is the whole flow, from the Widgets page to a Classic widget with its type picked.

Clicking New widget on the Widgets page, choosing the Classic layout and trying the Popup and Embed widget types

2. Choose what the widget shows

Below the layout, the General Settings tab has more sections. With the Classic layout, Appearance holds these options:

  • Content Type, to show full posts or post summaries
  • Main Color
  • Link Post Titles to the Feed Post
  • Collapse Long Posts
  • Override Title
  • Hide Search Input, Hide Feature Request, Hide Subscriptions, Hide Reactions and Hide Feedback
  • For the roadmap: Disable Toggle and Collapsed. See How to use Roadmap? for more.

A Sidebar also has Slide Direction and Width at the top of the section, as you can see here.

The Appearance section of a Classic sidebar widget: Slide Direction, Width, Content Type, Main Color, Collapse Long Posts and Override Title

The Advanced section sets the Auto Reload time in seconds (0 turns it off) and whether the widget sends the Google Analytics cookie. The widget checks for new posts at most once every 10 minutes, even when you enter a smaller number. See Does the widget show new posts without a page refresh?

With the Modern layout, the sections are Appearance (Slide Direction and Width), Header, Navigator (which tabs the widget shows), Home Page - Layout, Posts, Feature Requests, Roadmap and the home page's quick links, social media and rating platforms. The Posts section has the content type and the options to hide the search, subscriptions, cover image, labels, author name, date, feedback and reactions.

3. Style your widget

Open the Style tab. With the Modern layout, pick a preset color palette or set your own colors. At the bottom of the tab you can add Custom CSS.

The Style tab: preset color palettes Default, Dark Mode, Ocean Blue, Forest Green, Sunset Orange and Rose Pink, then Custom Colors

With the Classic layout, the Theme section loads a theme (Light (Default), Light - Boxed or Dark) and sets the background color and font. The sections below it (Header, Posts, Roadmap, Feature Request, Feedback, Subscription Banner) set colors and hide single elements, and Custom CSS is at the bottom.

If your plan does not include advanced styles, the Style tab shows "Advanced styles are not included in your plan." instead.

4. Choose a launcher

Open the Launcher Settings tab and pick the element that opens your widget in Type:

  • Badge: an unread counter attached to an element on your page
  • Float: a floating button
  • Drawer: a tab on the edge of the screen
  • Line
  • Custom Implementation

Each type has its own options, as you see when you switch between them.

Launcher Settings: opening the Type list and switching from Badge to Float and then to Drawer, with each type's options

You can change, for example:

  • The Badge Animation: None, Pulse or Shake
  • Minimal badge, a smaller badge without the unread number
  • The Badge Color and Badge Text Color
  • Hide badge when all read
  • The Float Position and the Float Icon of a Float launcher

The Boosters tab lets you highlight important posts. See Highlight important announcements with AnnounceKit Boosters.

5. Implement your widget

  1. Click Save at the top right.
  2. Open the Implementation tab.
  3. Copy the HTML element and place it where you want the widget to appear.
  4. Copy the Javascript code and place it before the closing </body> tag of your page.

Here is the JavaScript code of a saved widget, with its Copy Widget Code button.

The Javascript code on the Implementation tab, to place before the closing body tag, with a Copy Widget Code button

Under AnnounceKit SDK, the same tab links to the ReactJS Component, VueJS Component, Angular Component, Wordpress Plugin and the mobile SDKs. For a full setup walkthrough, see Get started: set up your workspace step by step. For more technical setup instructions, follow our Widget Setup & API guide. To change the look of a launcher with code, see the "Style the launcher from code" section of Widget Setup & API.

Was this helpful?