Better Static Block
Overview
It is pretty easy for admins to create Blocks in Magento 2 from Magento Admin panel. Store owners display Blocks anywhere. However, with the Better Static Block extension of Mageplaza, we create more helpful features such as displaying blocks by customer groups and websites, setting time for auto-displaying blocks, allowing admin to duplicate available blocks, supporting different types of content (video, image, text,...) and so on. This extension helps shop owners have flexibility in advertising products and significantly improves the efficiency of their stores.
How to download and install
How to Configure
I. Configuration
Login to the Magento Admin, choose Store > Configuration > Mageplaza > Better Static Block
1. General
- Select Enable = Yes to enable the module.
- Manage Labels:
- Enter a name for Label at the Name field
- Note: This is a required field.
- Click Browse to select the image for label.
- Admin can press Delete if you want to delete labels.
- Click Add Option to create additional Label.
- Enter a name for Label at the Name field
II. Grid
Login to the Magento Admin, choose Content > Blocks
1. Grid
This grid records all transactions of creating static blocks
At the form grid, Admin can understand all the basic information of static blocks, such as ID, title, identifier, Store view, Status, Created, Modified, Customer Groups, Label, State, Active From, Active To, Active On Day, From Time, To Time, Action.
Admin can perform some of the following actions:
- Edit: Select Edit in the Action column to edit the information on the edit block page.
- Delete: Select the block to delete Action > Delete .
- Change Status: Select a block to change status.
2. Add New / Edit Form
2.1. General
- Enable: Select Yes to display the block.
- Block Title: Create a display name for the block. The system will report an error if left blank.
- Identifier: Create key for block, block key is not allowed to overlap. The system will report an error if left blank.
- Store View: Select the store that displays the block. The system will report an error if left blank.
- Customer Groups: Select the group of customers to apply block display.
- Select Labels: Select label for block. A block may have multiple labels.
- Show/Hide Editor: Create content to display for blocks.
2.2. Activate Setting
- From Date: Select the start date & time of the block display.
- To Date: Select the end date & time of the block display.
- Select Day(s): Select the day of the week to display the block.
- Active by Time: Select Yes to display the time setting for the block.
- In addition, Admin can perform:
- Save: Save block
- Save & Duplicate: Admins save the block and, at the same time, create more blocks like that by increasing the Identifier.
- Save & Close: Admin saves the block and returns to the grid page.
III. Show block at frontend
- To display the block at the frontend, please go to Magento Admin, select
Content > Widgets
.
- Choose Add Widget to set the display for the block.
- Type: Select the display type, here we choose CMS Static Block
- Design Theme: At the design section, select Magento Luma.
- After creating the Type and Design Theme, click Continue.
- Storefront Properties:
- Widget title: Enter a name for the widget.
- Assign to Store Views: Select the store to display the widget.
- Sort order: Set the position for displaying widgets in the same container.
- Layout Updates:
- Display On: Select the display area
- Widget Options:
- Admin click Select Block to select the displayed block. The pop-up system shown will contain all blocks for admins to choose.