# Announcement bar

An announcement bar is where you can showcase a message on your site to visitors.&#x20;

Using an announcement bar on your website is one of the easiest ways to draw customers' attention.

You might add an announcement bar to highlight the following information:

* shipping information
* new stock alerts
* any promotions, such as sales or new gift cards, etc.

<figure><img src="/files/xPErHCLUOyiTcdy8MkIe" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Steps

1. In the theme editor **(Customize)**, click **Add section**
2. Locate **Announcement Bar**
3. **Save.**
   {% endhint %}

You can control how the bar displays by ticking/unticking the checkboxes.&#x20;

* **Show announcement**: Enable/disable the bar.
* **Home page only**: Activate to display on the home page only or across all pages.
* **Show close button**: Activate the X button on the right-hand side of the bar.
* **Message**: Input the information needed.
* **Link**: Direct customers to a specific page when clicking the bar.
* **Show divider**: Differentiate the bar from the header section.

<figure><img src="/files/K6kPEe6uMySuWBddSWLr" alt="" width="375"><figcaption></figcaption></figure>

To edit all your theme's colors, go to **Theme Settings**> **Colors**. \
\
Text and background color for the announcement bar can be changed in the **Announcement bar section setting > Color scheme**

<figure><img src="/files/espv0cV4EU2aidQCpo6c" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KXg7RQBPe5btxYx69d4B" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/megamog-theme/pages-global-sections/announcement-bar.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
