|
| 1 | +# Global Notices Feature |
| 2 | + |
| 3 | +## Feature Name |
| 4 | + |
| 5 | +### Description |
| 6 | +The **Global Notices** feature allows administrators to create and manage **site-wide notifications** that appear in different locations on the website. These notices can be displayed as: |
| 7 | + |
| 8 | +- **Banners** (full-width messages at the top of the page) |
| 9 | +- **Toasts** (small pop-up notifications) |
| 10 | +- **Content Notices** (embedded within page content) |
| 11 | + |
| 12 | +Each notice can include an **icon**, an **action button/link**, and be **dismissable** for a set period. Notices are managed from the WordPress admin panel and can be configured based on user roles, login status, and page type. |
| 13 | + |
| 14 | +--- |
| 15 | + |
| 16 | +## How to Utilize |
| 17 | + |
| 18 | +### For Administrators |
| 19 | +**Accessing the Feature:** |
| 20 | +- Navigate to **Global Notices** in the WordPress admin menu. |
| 21 | +- Requires the **edit_posts** capability to manage notices. |
| 22 | + |
| 23 | +**Creating a Notice:** |
| 24 | +1. Click **"Add New Notice"** and configure: |
| 25 | + - **Message:** The main content of the notice. |
| 26 | + - **Type:** Info, warning, error, or success. |
| 27 | + - **Icon:** Optional visual indicator. |
| 28 | + - **Action:** A button or link (optional). |
| 29 | + - **Dismissable:** Set whether users can close the notice and how long it remains hidden. |
| 30 | + - **Location:** Choose from **Toast, Banner, or Content**. |
| 31 | + - **Constraints:** Restrict visibility based on: |
| 32 | + - **User Role & Login Status** (logged-in users vs. guests). |
| 33 | + - **Page Type** (frontpage vs. subpages). |
| 34 | +2. Click **Save & Publish** to make the notice live. |
| 35 | + |
| 36 | +### For Editors & Users |
| 37 | +- **Editors** (if they have the required permissions) can also create and manage notices. |
| 38 | +- **Users** will see notices based on the defined settings. |
| 39 | +- Dismissable notices remain hidden for the specified duration once closed. |
| 40 | +- Notices with **actions** (e.g., links/buttons) provide easy access to relevant information. |
| 41 | + |
| 42 | +--- |
| 43 | + |
| 44 | +## Purpose |
| 45 | + |
| 46 | +### Why This Feature Exists |
| 47 | +The **Global Notices** feature is designed to: |
| 48 | +✅ Provide a **centralized** way to display important messages across the website. |
| 49 | +✅ Allow **targeted messaging** based on user role, login status, and page type. |
| 50 | +✅ Improve **communication** between administrators and website visitors. |
| 51 | + |
| 52 | +### Who Benefits? |
| 53 | +- **Site Administrators**: Easily manage and schedule notices without modifying templates. |
| 54 | +- **Editors**: Display important updates without relying on developers. |
| 55 | +- **End Users**: Get relevant information at the right place and time, improving user experience. |
| 56 | + |
| 57 | +This feature eliminates the need for manually inserting notices on multiple pages and ensures consistency in messaging. |
| 58 | + |
| 59 | +--- |
| 60 | + |
| 61 | +## Meta |
| 62 | + |
| 63 | +- **Author:** Helsingborg Stad |
| 64 | +- **Initial Release Date:** February 2025 |
0 commit comments