Skip to content

How to Add Close Button in Alert Box/Message Box in WordPress?

Key Takeaways

  • Nexter Blocks Message Box block adds a close button to WordPress alert boxes or message boxes.
  • Close Icon toggle enables the close button after the title and description are added in the Message Box block.
  • Select Close Icon section lets the user choose the icon that appears as the close button in the alert box.
Table of Contents

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.

About the Author

Photo of Aditya Sharma CMO of Nexter
CMO at POSIMYTH Innovations · Nexter · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordPressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!