https://github.com/bacoords/block-banner-plugin
A plugin for building global alert banners in the block editor.
https://github.com/bacoords/block-banner-plugin
Last synced: 5 months ago
JSON representation
A plugin for building global alert banners in the block editor.
- Host: GitHub
- URL: https://github.com/bacoords/block-banner-plugin
- Owner: bacoords
- Created: 2024-05-09T13:59:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-13T21:50:43.000Z (about 2 years ago)
- Last Synced: 2025-03-10T22:40:58.660Z (over 1 year ago)
- Language: JavaScript
- Size: 206 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Block Banner Plugin
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.