WordPress is a highly flexible blog engine that can be used to build any kind of website, including sophisticated e-commerce stores. If you use WordPress too, you can add AnnounceKit widgets easily without editing or modifying your website template.
Step 1: Install the plugin
First, install the AnnounceKit WordPress Plugin on your WordPress site. You can install it from WP Admin > Plugins > Add new: search for AnnounceKit and click Install Now.
Step 2: Copy your widget's code
Next, copy the JavaScript code of your widget from the AnnounceKit dashboard.
- Open Widgets in the sidebar, under Engage.
- Click the widget you want to show. To make a new one, click New widget and save it first: the code appears only for a saved widget.
- Open the Implementation tab.
- Under Javascript, click Copy Widget Code.
The Implementation tab is the last tab at the top of the widget's configuration.
On that tab, the Javascript box holds the code to paste into WordPress, with the Copy Widget Code button under it.
Step 3: Add the widget in WordPress
Go to WP Admin > Settings > AnnounceKit > Add widget. Paste the JavaScript code you copied from the dashboard and choose the menu item where you want to show the widget.
If you paste the code of a widget whose launcher type is Float, the menu list disappears, because that type does not need any HTML element.
Step 4: Save
Click the Save Changes button, and enjoy AnnounceKit widgets on your WordPress site.
Troubleshooting
Can I change the position of the widget?
Yes. You can set right, left, top and bottom values on the plugin's editing page to fine-tune the position of the widget.
The widget doesn't appear on the menu
The plugin attaches the widget automatically, but sometimes it cannot find the HTML position of the chosen menu item. In that case, give the menu item the class name ak-man:
- Go to WP Admin > Appearance > Menus.
- Click the Screen Options button at the top of the screen.
- Tick the CSS Classes option in the Show advanced menu properties section.
- Enter ak-man in the CSS Classes field of the menu item.
Another reason for this issue is the widget's launcher type. Only the Badge and Line launcher types can be attached to a menu. You can check the type on the widget's Launcher Settings tab, under Type. Make sure you have copied the code of the right widget.
If you still have problems, do not hesitate to contact us.