> For the complete documentation index, see [llms.txt](https://docs.ninjateam.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ninjateam.org/notibar/tutorials/how-to-add-a-time-based-notification-bar-in-wordpress.md).

# How to Add a Time-Based Notification Bar in WordPress

If you need to display a notification bar between specific hours, check out this guide. Showing a notification bar during specific hours would come in handy if you are running a daily limited-time sale.

Here is how you can do it.

The first thing you need to do is [install and activate the Notibar WordPress plugin](/notibar/getting-started/installation.md) on your website. Once you have finished the installation, [activate it](/notibar/getting-started/license-activation.md).

Once you are done, [create a notification bar](/notibar/tutorials/how-to-display-a-notification-bar-in-wordpress.md).

<figure><img src="https://2063119859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F35jzYIZxvumkpSJGtFtc%2Fuploads%2FgUKSm3Na6rQs2Tcw7FCu%2Fcreate%20a%20new%20bar.jpg?alt=media&amp;token=5cdd63d3-a057-4dff-a3a4-6451e83a58d1" alt=""><figcaption></figcaption></figure>

Now, go to the behavior settings and enable the notification bar scheduling option.

<figure><img src="https://2063119859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F35jzYIZxvumkpSJGtFtc%2Fuploads%2F3JJCWzZmBijWO71ezz6t%2Fschedule%20bar.jpg?alt=media&amp;token=dddbf645-b173-4176-95c4-d73306bcf7b2" alt=""><figcaption></figcaption></figure>

Enable the scheduling option and scroll down until you see an option called **Limit to a daily window**.

<figure><img src="https://2063119859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F35jzYIZxvumkpSJGtFtc%2Fuploads%2FfRMqlQzfExoiQmjxBbPE%2Flimit%20to%20daily%20window.jpg?alt=media&amp;token=3fba9555-f531-4316-9841-1963cab83457" alt=""><figcaption></figcaption></figure>

When you enable the daily window option, you can choose a start and end time. Depending on your preference, tweak the time limit. You can also choose which days the bar needs to be displayed.

<figure><img src="https://2063119859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F35jzYIZxvumkpSJGtFtc%2Fuploads%2FEkhucBq2hw9TdHUtgqhY%2Ftime.jpg?alt=media&amp;token=81ac2e9e-a52d-4432-ab7e-222e1b888797" alt=""><figcaption></figcaption></figure>

Once you are done with the configuration, publish the changes.

From now on, the notification bar will be displayed according to your time frame configuration.
