GET FREE VERSION GET THE PRO VERSION

How to Restrict Label Visibility to Certain User Roles

Learn how to limit labels for displaying only to specific user roles.

In this article

Overview

In this article we will cover how to show specific labels for specific user roles.

Example: we have a product promotion for shop club members (user role = Club Member) for all products with category Promo.
That promotion includes a 10% discount with the promocode 10OFFMEMBER.

So we want to show the label 10% OFF with 10OFFMEMBER code for logged-in users with the user role Club Member, and a Best Offer label for all other users. All this applies to products in the Promo category.

Label that view users with user role = Club Member

Label that view users with user role = Club Member

Label that view users without user role = Club Member

Label that view users without user role = Club Member

Below we will cover how to create such labels.

Creating labels for different user roles

To create two different labels for two user groups (with and without the Club Member user role), we need to create two separate labels with different display conditions.

Let's break all required actions into small steps.

Creating a label for the Club Member user role

  1. Go to the Adv. Woo Label page and click the Add New label button.

    Button to create new label

    Button to create new label

  2. To display this label only for users with the Club Member role and only for products in the Promo category, set the following values for the Label Conditions option:

    User Role -> equal to -> Club Member AND
    Product category -> equal to -> Promo

    Label display conditions

    Label display conditions

  3. For the Label text option, set the following value:

    10% OFF with 10OFFMEMBER code

    Label text option

    Label text option

  4. Set any other options of your choice. You can apply styling, animations, label links, positions, etc.
    This step is optional and does not affect the objective of this article.
  5. When done, click the Publish button to create and publish the label.

Creating a label for all other user roles

  1. As with the previous label, go to the Adv. Woo Label page and click the Add New label button.

    Button to create new label

    Button to create new label

  2. Now we need to configure this second label to be displayed for all products in the Promo category, but only for users without the Club Member role.

    To do that, set the following values for the Label Conditions option:

    User Role -> not equal to -> Club Member AND
    Product category -> equal to -> Promo

    Label display conditions

    Label display conditions

  3. For the Label text option, set the following value:

    Best Offer

    Label text option

    Label text option

  4. Set any other options of your choice. You can apply styling, animations, label links, positions, etc.
    This step is optional and does not affect the objective of this article.
  5. Click the Publish button to publish the label.

That's it - with these simple steps, we've created two labels that will be shown to two different user groups, each with its own text.

You can modify this example as needed - add different user roles, change label text, or use a completely different label display logic. It's entirely up to you and only limited by your imagination and needs.

FAQ

Can I add more user roles with different labels?

Yes, you can create additional labels for any other user roles using the same method - just adjust the Label Conditions accordingly.

Will these labels show for guest users?

Labels based on user roles won’t appear for guest users unless you create a separate label without a user role condition.

Can I use different categories instead of Promo?

Absolutely. You can assign labels to any product category by changing the product category condition during label setup.

Can I show some special labels for all not logged-in users.

Absolutely. Just use User Role display condition with value equal to -> Visitor