MOH Top Announcement Bar
Add a top bar plugin to Wordpress Divi Sites
by ClientClicks · github.com/clientclicks/wordpress-top-bar · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/clientclicks/wordpress-top-bar/archive/refs/heads/main.zipMOH Top Announcement Bar — WordPress Plugin
A lightweight WordPress plugin that adds a customizable announcement bar above your Divi-powered site's header. No theme builder editing required — your client manages everything from Settings → Top Bar in the WordPress admin.
Features
- ✅ Enable / disable the bar with one checkbox
- ✅ Editable announcement text (centered)
- ✅ Editable button text and link URL
- ✅ Option to open link in new tab
- ✅ Color pickers for bar background, text, button, and button text
- ✅ Live preview in the admin settings page
- ✅ Fully responsive — button stacks below text on small screens
- ✅ Compatible with Divi (uses
wp_body_openwith JS fallback for older Divi versions) - ✅ No page builders, no shortcodes — just a simple settings page
Installation
- Download or copy the
moh-top-barfolder. - Upload it to your site's
/wp-content/plugins/directory. - In the WordPress admin, go to Plugins and activate MOH Top Announcement Bar.
- Navigate to Settings → Top Bar to configure the bar.
How to Update the Bar (for your client)
- Log in to WordPress admin.
- Go to Settings → Top Bar in the left sidebar.
- Update any of the following:
- Enable Bar — check/uncheck to show or hide the bar sitewide
- Announcement Text — the message that appears in the bar
- Button Text — what the button says (leave blank to hide button)
- Button Link — where the button goes
- Open in new tab — whether the link opens in a new browser tab
- Colors — optional color pickers for full customization
- Watch the live preview at the bottom of the page update in real time.
- Click Save Changes.
Compatibility
- WordPress 5.0+
- Divi Theme (all versions — uses
wp_body_openwith JS fallback) - PHP 7.4+
Notes
- The bar always sits at the very top of the page, above the Divi header.
- No Divi Theme Builder editing is needed after the plugin is activated.
- If you previously had a manual top bar in the Divi Theme Builder, you can delete it — this plugin replaces it.