Do you want to add a close button to the WordPress alert box? Adding a close button to the alert box can improve the user experience by giving an option to the users to close the message.
With the Message Box block from Nexter Blocks, you can add a close button to alert boxes or message boxes in WordPress.
To check the complete feature overview documentation of the Nexter Blocks Message Box block, click here.
Requirement – This block is a part of the Nexter Blocks, make sure it’s installed & activated to enjoy all its powers.
To do this, add the Message Box block and follow the steps.
1. Add the title and description from the Title and Description sections.
2. Then enable the Close Icon toggle.
3. After that, add the icon from the Select Close Icon section.
Now you’ll see a close button in the alert box, which you can click to close it.