50% discount on BricksLabs Pro Membership Lifetime Access. Use coupon: GOBRICKS

User Role Condition in Bricks

user-role-condition-bricks

This Pro tutorial provides the steps to conditionally output elements depending on the currently logged-in user's role.

Step 1

Create a section Template having the content you wish to output for users having a specific role.

Sample name of a Template for author user role: Author User Role Content

Edit and build it with Bricks.

Step 2

Add the following in your child theme's functions.php:

This is a Pro members-only tutorial.

To get full access, login below or sign up for a Pro Account

Leave the first comment