How to Schedule CMS Blocks in Magento 2?

When it comes to the management of content blocks in Magento, it's always overwhelmed, especially when the holiday season rolls around the corner. If you want to display different CMS blocks based on a date or time, be ready for a lot of enabling/disabling work.

Not only is it ineffective but time-consuming. So you need a more effective solution — Magento 2 Dynamic Blocks.

To schedule CMS blocks in Magento 2:

1. Navigate to Content > Blocks and press the Add New Block button to start scheduling CMS blocks in Magento.

Note: if you've already created a CMS block, move on to step #4.

2. Enable the block and fill out general block information like Title, Identifier, and Store View it will be displayed on.

New CMS block Magento

3. Fill in the block Content, either in the page builder or WYSIWYG editor.

Magento Page Builder

4. Jump to the Display Rules section and specify the Date From and Date To to define a period for the display of a CMS block. Once that period expires the block will be automatically disabled.

Magento 2 CMS Block Schedule

5. Set the Days Of The Week when a CMS block should be enabled. 

CMS Block Display Rules Magento

6. Set Time From and Time To to limit the display of a block during the day. 

Time to display CMS blocks Magento

7. Press Save and you've scheduled the CMS block in Magento. But note that you also have to  create a widget to display the CMS block on a storefront.

Scheduling CMS blocks in Magento helps to optimize content management and allows you to automate your sales campaigns. Set up multiple CMS display blocks to be displayed one after another to save time and eliminate manual work.