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

Key Takeaways

  • Nexter Blocks provides a Message Box block that allows users to add a close button to alert boxes in WordPress.
  • Users enable the Close Icon toggle and select an icon to implement the close button functionality.
  • The close button enhances user experience by allowing users to dismiss alert messages easily.
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

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!