Adding a site-wide notice

There may be times when you have something you need every customer to see. Maybe you're having a limited-time sale, a problem with your contact page, or you just announced an awesome new product. For these types of situations, WooCommerce includes a setting to enable a site-wide notice.

How to do it…

To add a site-wide notice, perform the following steps:

  1. From the WordPress admin, go to WooCommerce | Settings.
  2. Check the Store Notice checkbox that can be found under the General Options heading.
  3. Once you check the box, you'll see a Store Notice Text field appear. Fill this in with any content you want.
    How to do it…
  4. Click on the Save changes button at the bottom of the page.
  5. Visit your site and see the notice.
    How to do it…

There's more...

If you need a bit more control over the notice, there are several free notice plugins on the WordPress.org repository. The Simple Notices plugin has a bit more flexibility with color choices and has title and description fields.

There is also the WooCommerce Cart Notices plugin, which adds notices depending on what's in the user's cart. We take a look at this plugin in the Adding banners to remind customers of upgrades recipe in Chapter 7, Modifying the Checkout Process.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset