{"id":16871,"date":"2026-11-20T11:22:06","date_gmt":"2026-11-20T11:22:06","guid":{"rendered":"https:\/\/www.24x7wpsupport.com\/blog\/?p=16871"},"modified":"2026-11-20T11:25:40","modified_gmt":"2026-11-20T11:25:40","slug":"how-to-add-an-announcement-bar-or-site-notice-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/","title":{"rendered":"How to Add an Announcement Bar or Site Notice in WordPress (2026)"},"content":{"rendered":"<p>An announcement bar is a thin strip of text at the top of your site. It tells every visitor one thing, such as a sale, a delay or a change in opening hours. WordPress has no single button for this, but there are several easy ways to add one. This guide covers each of them for 2026. You will see how to add a notice with the Site Editor, with a classic theme, with WooCommerce, with a plugin and with a few lines of code.<\/p>\n<h2>What an Announcement Bar Is and When to Use One<\/h2>\n<p>A site notice is a short message that shows on every page. It most often sits above the header, though some sites pin it to the foot of the screen. It can hold a line of text, a link and a close button. It is not a popup. A popup covers the page and asks for a click, while a bar sits out of the way and lets people read on.<\/p>\n<p>Use a bar when the news matters to most visitors and has an end date. Good uses are a holiday sale, a shipping cut-off date, a planned outage or a new store address. A bar is a poor home for news that only a few people need. It also loses its pull if it never changes, since repeat visitors learn to skip it. If you need people to act before they can browse, a popup may suit you better. Our guide on <a style=\"color: #ffba00; text-decoration: underline;\" href=\"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-a-pop-up-button-or-banner-in-wordpress\/\">how to add a pop-up or banner in WordPress<\/a> covers that.<\/p>\n<h2>How to Add a Site Notice With the Site Editor<\/h2>\n<p>If your site runs a block theme, you can build a bar with no plugin at all. A block theme is one that you edit in the Site Editor, such as the default themes that ship with WordPress. The header of a block theme is a template part. Any block you add to that part shows on every page that uses the header.<\/p>\n<p><strong>Step 1: Open the header.<\/strong> Go to <strong>Appearance \u2192 Editor \u2192 Patterns<\/strong>. Under <strong>Template Parts<\/strong>, click <strong>Header<\/strong> and open the header your site uses.<\/p>\n<p><strong>Step 2: Add a Group block at the top.<\/strong> Click the <strong>List View<\/strong> icon in the top bar. Click the three dots next to the first block and pick <strong>Add before<\/strong>. Type &#8220;group&#8221; and add a Group block. It now sits above your logo and menu.<\/p>\n<p><strong>Step 3: Write the message.<\/strong> Add a Paragraph block inside the group. Type your notice and add a link if you need one. Set the text to align center.<\/p>\n<p><strong>Step 4: Style the bar.<\/strong> Click the Group block. In the <strong>Styles<\/strong> tab of the side panel, set a background color and a text color. Under <strong>Dimensions<\/strong>, set a small padding, such as 8 pixels at the top and bottom.<\/p>\n<p><strong>Step 5: Save.<\/strong> Click <strong>Save<\/strong>, then open your site in a new tab. The bar should show on every page. To take it down later, open the same header, pick the Group block and delete it.<\/p>\n<h2>How to Add a Notice in a Classic Theme<\/h2>\n<p>A classic theme has no Site Editor. You will know you have one if you see <strong>Appearance \u2192 Customize<\/strong> and <strong>Appearance \u2192 Widgets<\/strong> in the menu. Classic themes differ a lot, so the bar may live in one of two places. Check both before you reach for a plugin.<\/p>\n<p><strong>Look for a top bar setting.<\/strong> Go to <strong>Appearance \u2192 Customize<\/strong> and open the <strong>Header<\/strong> panel. Many classic themes have a section named &#8220;Top Bar&#8221;, &#8220;Header Top&#8221; or &#8220;Notice Bar&#8221;. Turn it on, type your text and pick the colors. The preview on the right shows the result as you type. Click <strong>Publish<\/strong> in the Customizer to make it live.<\/p>\n<p><strong>Look for a header widget area.<\/strong> Go to <strong>Appearance \u2192 Widgets<\/strong>. If you see an area named &#8220;Top Bar&#8221; or &#8220;Above Header&#8221;, add a Paragraph block to it and type your notice. Click <strong>Update<\/strong> to save.<\/p>\n<p>If your theme has neither, you still have three routes. You can use a plugin, use the WooCommerce notice if you run a store, or add a small piece of code. Each one is covered below. For wider header changes, see our post on <a style=\"color: #ffba00; text-decoration: underline;\" href=\"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/\">how to customize headers in WordPress<\/a>.<\/p>\n<h2>How to Use the WooCommerce Store Notice<\/h2>\n<p>WooCommerce comes with its own site notice, and many store owners never find it. It is called the store notice. It shows a strip of text on every page of the store, with a <strong>Dismiss<\/strong> link at the end. When a shopper clicks that link, the bar stays hidden for them until you change the text.<\/p>\n<p>To turn it on with a classic theme, go to <strong>Appearance \u2192 Customize \u2192 WooCommerce \u2192 Store Notice<\/strong>. Type your message in the box. You can use plain text and a basic link tag. Tick <strong>Enable store notice<\/strong>, check the preview, then click <strong>Publish<\/strong>. The bar picks up its colors from your theme. Some themes show it at the top of the page and some at the foot.<\/p>\n<p>The store notice has limits. You get one message, with no start date or end date. You cannot show it on some pages and hide it on the rest. It also relies on a small script and a cookie, so a page cache can show an old message for a while after you edit it. For a quick note such as &#8220;Orders placed after 20 December ship in January&#8221;, it does the job well. For a timed sale with a countdown, a plugin is a better fit.<\/p>\n<h2>How to Add an Announcement Bar With a Plugin<\/h2>\n<p>A plugin is the right choice when you want extras. These include a close button, a start and end time, a countdown, or rules for which pages show the bar. Many free plugins do this. Before you install one on a live site, take a backup or try it on a staging copy first. Our guides on <a style=\"color: #ffba00; text-decoration: underline;\" href=\"https:\/\/www.24x7wpsupport.com\/blog\/how-to-backup-and-restore-wordpress-website\/\">how to back up and restore a WordPress site<\/a> and <a style=\"color: #ffba00; text-decoration: underline;\" href=\"https:\/\/www.24x7wpsupport.com\/blog\/how-to-set-up-staging-site-in-wordpress\/\">how to set up a staging site<\/a> explain how.<\/p>\n<p><strong>Step 1: Find a plugin.<\/strong> Go to <strong>Plugins \u2192 Add New Plugin<\/strong> and search for &#8220;announcement bar&#8221; or &#8220;notification bar&#8221;. Pick one that was updated in the past few months and is tested with your version of WordPress.<\/p>\n<p><strong>Step 2: Install it.<\/strong> Click <strong>Install Now<\/strong>, then <strong>Activate<\/strong>. Look for the new menu item in the left admin menu or under <strong>Settings<\/strong>.<\/p>\n<p><strong>Step 3: Create the bar.<\/strong> Type your message and add a button link if you want one. Choose where the bar sits, top or bottom, and if it should stay in view as people scroll.<\/p>\n<p><strong>Step 4: Set the rules.<\/strong> Choose the pages that show the bar. Set a start and end date if the plugin has that option. Turn on the close button, and set how many days the bar stays hidden once a visitor closes it.<\/p>\n<p><strong>Step 5: Save and test.<\/strong> Save the bar, then view your site in a private window.<\/p>\n<h2>How to Add a Site Notice With Code<\/h2>\n<p>You can add a bar with a few lines of code and no plugin. This suits a developer, or an owner who wants the leanest set up. The code is a risk if it has a typo, so do not paste it into a live site first. Take a backup, and test on a staging copy. Never edit the files of a parent theme, since the next theme update will wipe your change.<\/p>\n<p>WordPress has a hook named <strong>wp_body_open<\/strong>. A hook is a point in the page where your own code can run. This one fires right after the page body starts, which is the ideal spot for a bar. Most themes made since 2019 support it. Your code should attach a small function to that hook. The function prints one line of HTML, which is a div that holds your message. You then add a few CSS rules for the background color, the text color and the padding.<\/p>\n<p>There are two safe homes for this code. The first is the functions.php file of a child theme, at <strong>wp-content\/themes\/your-child-theme\/functions.php<\/strong>. Our post on <a style=\"color: #ffba00; text-decoration: underline;\" href=\"https:\/\/www.24x7wpsupport.com\/blog\/what-is-a-wordpress-child-theme-2026\/\">what a WordPress child theme is<\/a> shows how to make one. The second is a small custom plugin, which keeps the bar in place if you switch themes. If you are not sure which to pick, read <a style=\"color: #ffba00; text-decoration: underline;\" href=\"https:\/\/www.24x7wpsupport.com\/blog\/functions-php-vs-custom-plugin-2026\/\">functions.php vs a custom plugin<\/a>. Put the CSS in <strong>Appearance \u2192 Customize \u2192 Additional CSS<\/strong> on a classic theme.<\/p>\n<h2>How to Write and Style a Bar People Will Read<\/h2>\n<p>The way you build the bar matters less than what it says. A bar has about two seconds to make its point. A few simple rules help it do that, and none of them need a designer.<\/p>\n<p><strong>Keep it to one line.<\/strong> Aim for 90 characters or fewer. On a phone, a long message wraps to three or four lines and pushes your logo down the screen. Say one thing, then link to a page that holds the detail.<\/p>\n<p><strong>Lead with the news.<\/strong> Put the key words first. &#8220;Free shipping until Sunday&#8221; works. &#8220;We are pleased to let you know about our offer&#8221; does not.<\/p>\n<p><strong>Make the text easy to see.<\/strong> Use dark text on a light bar or light text on a dark bar. The rule of thumb for body text is a contrast ratio of at least 4.5 to 1. You can check your two colors with any free contrast checker.<\/p>\n<p><strong>Let people close it.<\/strong> A close button shows respect for repeat visitors. Make sure it can be reached with the Tab key and has a label such as &#8220;Close notice&#8221; for screen readers.<\/p>\n<h2>Common Announcement Bar Problems and What to Check<\/h2>\n<p>A bar is a small thing, but it sits on every page, so a fault shows up everywhere at once. The issues below are the ones we see most often. Each has a quick check you can run before you change anything else.<\/p>\n<p><strong>The old message still shows.<\/strong> A cache is serving a saved copy of the page. Clear your page cache and any cache at your host, then look in a private window. Our guide on <a style=\"color: #ffba00; text-decoration: underline;\" href=\"https:\/\/www.24x7wpsupport.com\/blog\/how-to-clear-wordpress-cache\/\">how to clear the WordPress cache<\/a> lists each layer.<\/p>\n<p><strong>The page jumps as it loads.<\/strong> Some bars are added by a script after the page has drawn. The whole page then shifts down, which hurts your layout shift score. Choose a bar that is part of the page HTML, such as the Site Editor method. If you must use a script bar, pin it to the bottom of the screen so it does not push content.<\/p>\n<p><strong>The bar hides the menu.<\/strong> This happens when both the bar and the header are set to stick to the top. Turn off the sticky option on one of them, or let the bar scroll away with the page.<\/p>\n<h2>Need Help Setting Up a Site Notice?<\/h2>\n<p>You now have five ways to add an announcement bar in WordPress. Block themes can do it in the Site Editor with a Group block in the header. Classic themes may have a top bar setting or a widget area. Stores can turn on the WooCommerce store notice. A plugin adds timing, page rules and a close button. A short piece of code on the wp_body_open hook gives you the leanest bar of all.<\/p>\n<p>Pick the simplest route that meets your need, keep the message short, and set a date to take it down. If your bar will not show, shifts the page or clashes with a sticky header, the cause is often a cache or a theme setting. If you would like someone to take a look, the team at <a style=\"color: #ffba00; text-decoration: underline;\" href=\"https:\/\/www.24x7wpsupport.com\">24&#215;7 WP Support<\/a> works on WordPress themes, WooCommerce stores and plugin set up every day. Tell us what you want the notice to do, and we can talk through the options with you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An announcement bar is a thin strip of text at the top of your site. It tells every visitor one &#8230;<\/p>\n","protected":false},"author":1,"featured_media":16875,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1096],"tags":[3038,3041,3039,3042,1914,3040,1910],"class_list":["post-16871","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-announcement-bar","tag-notification-bar","tag-site-notice","tag-woocommerce-store-notice","tag-wordpress-2026","tag-wordpress-announcement-bar","tag-wordpress-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Announcement Bar in WordPress (2026) | 24x7 WP Support<\/title>\n<meta name=\"description\" content=\"Learn how to add an announcement bar in WordPress in 2026 using the Site Editor, a classic theme, the WooCommerce store notice, a plugin or custom code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Announcement Bar in WordPress (2026) | 24x7 WP Support\" \/>\n<meta property=\"og:description\" content=\"Learn how to add an announcement bar in WordPress in 2026 using the Site Editor, a classic theme, the WooCommerce store notice, a plugin or custom code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7WPSupport Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/24x7wpsupport\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-20T11:22:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-20T11:25:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2026\/11\/Add-an-Announcement-Bar-or-Site-Notice-.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Brian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wpsupport24x7\" \/>\n<meta name=\"twitter:site\" content=\"@wpsupport24x7\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/\"},\"author\":{\"name\":\"Brian\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/40ee989d8d57096afc53a526d6e612b0\"},\"headline\":\"How to Add an Announcement Bar or Site Notice in WordPress (2026)\",\"datePublished\":\"2026-11-20T11:22:06+00:00\",\"dateModified\":\"2026-11-20T11:25:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/\"},\"wordCount\":1974,\"publisher\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Add-an-Announcement-Bar-or-Site-Notice-.png\",\"keywords\":[\"announcement bar\",\"notification bar\",\"site notice\",\"WooCommerce store notice\",\"WordPress 2026\",\"WordPress announcement bar\",\"WordPress tutorial\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/\",\"name\":\"Announcement Bar in WordPress (2026) | 24x7 WP Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Add-an-Announcement-Bar-or-Site-Notice-.png\",\"datePublished\":\"2026-11-20T11:22:06+00:00\",\"dateModified\":\"2026-11-20T11:25:40+00:00\",\"description\":\"Learn how to add an announcement bar in WordPress in 2026 using the Site Editor, a classic theme, the WooCommerce store notice, a plugin or custom code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Add-an-Announcement-Bar-or-Site-Notice-.png\",\"contentUrl\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Add-an-Announcement-Bar-or-Site-Notice-.png\",\"width\":1600,\"height\":900,\"caption\":\"Add an Announcement Bar or Site Notice\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add an Announcement Bar or Site Notice in WordPress (2026)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/\",\"name\":\"24x7WPSupport Blog\",\"description\":\"WordPress Theme Update | WordPress Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#organization\",\"name\":\"24x7 WP Support\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/wpsupportlatestlogo.png\",\"contentUrl\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/wpsupportlatestlogo.png\",\"width\":269,\"height\":64,\"caption\":\"24x7 WP Support\"},\"image\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/24x7wpsupport\",\"https:\\\/\\\/x.com\\\/wpsupport24x7\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/40ee989d8d57096afc53a526d6e612b0\",\"name\":\"Brian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5a5a62eb3263db905a008db8d80b6777dd5792da217d72772ec4c23dc58ec9d6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5a5a62eb3263db905a008db8d80b6777dd5792da217d72772ec4c23dc58ec9d6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5a5a62eb3263db905a008db8d80b6777dd5792da217d72772ec4c23dc58ec9d6?s=96&d=mm&r=g\",\"caption\":\"Brian\"},\"description\":\"Brian is a WordPress support specialist and content contributor at 24x7 WP Support. He writes practical, easy-to-follow guides on WordPress troubleshooting, WooCommerce issues, plugin and theme errors, website security, migrations, performance optimization, and integrations. With a focus on solving real website problems, Brian helps business owners, bloggers, and online store managers keep their WordPress sites running smoothly.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Announcement Bar in WordPress (2026) | 24x7 WP Support","description":"Learn how to add an announcement bar in WordPress in 2026 using the Site Editor, a classic theme, the WooCommerce store notice, a plugin or custom code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/","og_locale":"en_GB","og_type":"article","og_title":"Announcement Bar in WordPress (2026) | 24x7 WP Support","og_description":"Learn how to add an announcement bar in WordPress in 2026 using the Site Editor, a classic theme, the WooCommerce store notice, a plugin or custom code.","og_url":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/","og_site_name":"24x7WPSupport Blog","article_publisher":"https:\/\/www.facebook.com\/24x7wpsupport","article_published_time":"2026-11-20T11:22:06+00:00","article_modified_time":"2026-11-20T11:25:40+00:00","og_image":[{"width":1600,"height":900,"url":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2026\/11\/Add-an-Announcement-Bar-or-Site-Notice-.png","type":"image\/png"}],"author":"Brian","twitter_card":"summary_large_image","twitter_creator":"@wpsupport24x7","twitter_site":"@wpsupport24x7","twitter_misc":{"Written by":"Brian","Estimated reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/"},"author":{"name":"Brian","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#\/schema\/person\/40ee989d8d57096afc53a526d6e612b0"},"headline":"How to Add an Announcement Bar or Site Notice in WordPress (2026)","datePublished":"2026-11-20T11:22:06+00:00","dateModified":"2026-11-20T11:25:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/"},"wordCount":1974,"publisher":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2026\/11\/Add-an-Announcement-Bar-or-Site-Notice-.png","keywords":["announcement bar","notification bar","site notice","WooCommerce store notice","WordPress 2026","WordPress announcement bar","WordPress tutorial"],"articleSection":["WordPress"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/","url":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/","name":"Announcement Bar in WordPress (2026) | 24x7 WP Support","isPartOf":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2026\/11\/Add-an-Announcement-Bar-or-Site-Notice-.png","datePublished":"2026-11-20T11:22:06+00:00","dateModified":"2026-11-20T11:25:40+00:00","description":"Learn how to add an announcement bar in WordPress in 2026 using the Site Editor, a classic theme, the WooCommerce store notice, a plugin or custom code.","breadcrumb":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/#primaryimage","url":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2026\/11\/Add-an-Announcement-Bar-or-Site-Notice-.png","contentUrl":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2026\/11\/Add-an-Announcement-Bar-or-Site-Notice-.png","width":1600,"height":900,"caption":"Add an Announcement Bar or Site Notice"},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-add-an-announcement-bar-or-site-notice-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7wpsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add an Announcement Bar or Site Notice in WordPress (2026)"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#website","url":"https:\/\/www.24x7wpsupport.com\/blog\/","name":"24x7WPSupport Blog","description":"WordPress Theme Update | WordPress Blog","publisher":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7wpsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#organization","name":"24x7 WP Support","url":"https:\/\/www.24x7wpsupport.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2018\/11\/wpsupportlatestlogo.png","contentUrl":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2018\/11\/wpsupportlatestlogo.png","width":269,"height":64,"caption":"24x7 WP Support"},"image":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/24x7wpsupport","https:\/\/x.com\/wpsupport24x7"]},{"@type":"Person","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#\/schema\/person\/40ee989d8d57096afc53a526d6e612b0","name":"Brian","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/5a5a62eb3263db905a008db8d80b6777dd5792da217d72772ec4c23dc58ec9d6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5a5a62eb3263db905a008db8d80b6777dd5792da217d72772ec4c23dc58ec9d6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5a5a62eb3263db905a008db8d80b6777dd5792da217d72772ec4c23dc58ec9d6?s=96&d=mm&r=g","caption":"Brian"},"description":"Brian is a WordPress support specialist and content contributor at 24x7 WP Support. He writes practical, easy-to-follow guides on WordPress troubleshooting, WooCommerce issues, plugin and theme errors, website security, migrations, performance optimization, and integrations. With a focus on solving real website problems, Brian helps business owners, bloggers, and online store managers keep their WordPress sites running smoothly."}]}},"_links":{"self":[{"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/posts\/16871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=16871"}],"version-history":[{"count":2,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/posts\/16871\/revisions"}],"predecessor-version":[{"id":16874,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/posts\/16871\/revisions\/16874"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/media\/16875"}],"wp:attachment":[{"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=16871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=16871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=16871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}