CMS Display Rules allow you to display CMS blocks to different groups of customers: General, Wholesale, Retail and NOT LOGGED IN. Moreover it enables you to set the date, weekday and even the exact time period you want the CMS Block to be displayed on.

In this article, you're going to learn how to configure CMS block restrictions in Magento 2.

Follow these steps to configure the CMS display rule for CMS blocks in Magento 2:

1. Navigate to Content > Elements > Blocks, choose the CMS block you want to create the display rule for and find the Display Conditions and Display Rules sections.

Note: you can also create new CMS block and set up CMS display rule along the way.

Magento 2 display rules and conditions

2. Set the Customer Group you want CMS block to be visible to.

You can reduce the number of customers CMS block will be displayed to by setting some separate customer groups in the Display Rules.

Magento 2 CMS block customer group

3. Configure the time of CMS block display.

Display Rules extension enables you to display static block not only by date, but the weekday or even the exact time of the day.

Magento 2 CMS block display time

4. Set an alternative block you want other segments of customers to see instead of the one you are configuring the CMS display rule for.

In case you decide to display the CMS Block to a specific group of customers you might want to display something to other groups instead. So, you are able to display the alternative static block with Magento 2 CMS Display Rule extension.
Magento 2 Display another CMS block

5. Choose conditions you want the CMS block to be displayed under.

According to Magento 2 CMS Display Rules you are able to display static blocks by customers' shopping cart attributes like Subtotal, Total Items Quantity, Shipping or Payment Methods.

Magento 2 CMS page display rule

This module also allows you to choose product attributes such as Category,  Quantity, Sale, Gender, Climate, etc. to display CMS block by.

Note: if you don't see your product attributes in conditions add products attribute to sales rules conditions.

Magento 2 CMS page condition

Besides, if you want to manage the display of CMS blocks on categories, you can set up conditions based on category attribute.

Display CMS Blocks Based on Category

And if you want to show them on specific types of pages or URLs, select page attributes

Display CMS Blocks by Page Attributes

For example, you want to offer free shipment for those who reached the subtotal. Then you can add the display condition according to which people whose shopping cart subtotal is greater than but less than  will see the free shipping offer. 

Magento 2 CMS display conditions

Once you finish setting the CMS display rules for CMS block don't forget to Save it and check how it works according to the conditions.
Magento 2 free shipment offer

Now you see that Magento 2 CMS Display Rules Extension is a great contribution to your business.

It allows you to improve your CMS blocks management, run promotions campaigns and encourage your customers to buy more by showing them some special offers. Try it out on our live demo and make sure!