Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/bacoords/block-banner-plugin/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Experimental plugin for WordPress block themes to add global banner elements to the site. The banners are built as a CPT in the block editor and can be added to any page or post (coming soon) or globally to the site.
There's an option for setting the cookie exiration time for the banner, so it won't show up again for the user after they've closed it.
Setup
Open the Site Editor and add the 'Banner Placeholder' block to your header template. This will be replaced with the banner content when a banner is active.