Notices Setup

Overview

This document provides instructions on how to add notices to your site using our notices extension.

Settings page

When activated, the extension will add a notices tab to the settings page. On this tab is an option to set the position of footer notices. You can select to show footer notices on the left or right. This is a global option and applies to all notices.

[Ultimate Member > Settings > Extensions > Notices]

Creating a notice

To create a notice, click on Notices in the Ultimate Member sub-menu and click the "Add new notices buttons." Give the notice a title and enter the text you want to show in the notice.  [wp-admin> Ultimate Member> Notices]

You can then customize the notice using the following options:

Options

  • Allow this notice to appear in footer –by default, all notices will appear as a footer notice. If you turn this option off, the notice will not appear as a footer notice, and you will have to use the generated shortcode to add it to your site.
  • Display this notice to logged out users –This option allows you to decide whether or not logged-out users can see the notice.
  • Display this notice to logged in users –This option allows you to decide whether or not logged-in users can see the notice.
  • Which user roles can see this notice –This option allows you to decide which user roles can see the notice.
  • Show If the user did not –This option allows you to show the notice to logged-in users who have not: "Uploaded a profile photo," "Uploaded a cover photo" or "Other" (to use this option you must paste the meta_key for the field). The default value is "--."
  • Show If the user did not fill that metakey* – This option allows you to show the notice to users who didn't fill a certain field. Required if the option "Show If the user did not" is "Other."
  • Show only to certain user(s) – A comma-separated list of user IDs or usernames to show this notice for.

Note: The option "Show If the user did not fill that meta key" is required if the option "Show If the user did not" is set to "Other."

Footer rules

  • Show on specific URLs only – This option allows you to only show the footer notice on specific URLs (if turned on, you need to paste URLs into the text area (1 URL per field).
  • Show on Homepage –This option allows you to decide whether or not the notice is shown on your site's homepage.
  • Show on Posts –This option allows you to decide whether or not to show the notice on posts.
  • Show on Pages –This option allows you to decide whether or not to show the notice on pages.
  • Show on Custom Post Types – This option allows you to decide whether or not to show the notice on custom post types.

Styling

The styling section allows you to customize the appearance of the notice, including colors, size, and adding an icon to the notice.

CTA (Call to action)

  • Enable Call to Action button – If you want to show a button in the notice, you can turn it on with this option. If turned on, you will set the button text, URL, text color, and background color.

Shortcode

Every notice comes with its shortcode, which you can use to show the notice anywhere on your site. Notices can appear as both a footer notice and a shortcode notice, or you can turn on the footer notice so that the notice is only used as a shortcode. If you have a notice as both a shortcode and a footer notice, the footer notice will not appear on the same page where the shortcode is added (this is to stop the same notice from appearing twice on the same page).

[ultimatemember_notice id="notice_id"]

Cookies & Flush

To stop the notices appearing to users after they have close the notice, the extension will remember using cookies for logged-out users and the user id for logged-in users. Each notice can be flushed, which means that the notice will appear again for logged-in users who closed the notice. However, the flush function only works for logged-in users. For logged-out users to see the notice again, they must delete their cookies.