Announcements Bar functionality allows you to insert custom message or any other type of information on the top of all your pages. You can choose between two types of bar depending on your preference, both of them are described below.
Checkbox Enable turns on Announcement Bar functionality and exact time when the bar is displayed can be defined with options Date From and Date To:
- if both dates are defined, bar is displayed exactly in defined range
- if only “from” date is defined, bar is displayed all the time after defined date and time
- if only “to” date is defined, bar is displayed only to the defined date and time, after this time is bar automatically disabled
- if no dates are defined, bar is always displayed (if checkbox Enable is checked)
Make sure you have set up correct Timezone in WordPress General settings to make dates settings working correctly.
Simple type of bar allows you to write plain text with basic html tags for text like
<a>, <br>, <em>, <i>, <strong> and button with custom link. General styling for simple type of bar is predefined and bar is intended to show simple text information.
Color settings for bar background and button can be found in WordPress Customizer under Announcements Bar tab.
To have full control over content and design of Announcement Bar are available advanced settings of bar. You can write custom html and css for the bar to show it exactly as you want.
In Customizer settings is available chekbox Show preview of Announcement Bar which shows bar only in customizer even the bar is hidden no frontend. Bar is displayed independently on dates settings in admin, so you can prepare html and design for your bar and keep the bar hidden on frontend. Once the bar will be ready, you can enable it for frontend in admin Announcements Bar settings.