How to show WordPress Popup on link Click of other Element using selector?

Key Takeaways

  • Utilizes the Popup Builder block from Nexter Blocks to create customizable popups triggered by external elements.
  • Employs CSS classes to designate custom elements, such as the WordPress Image block, as popup triggers.
  • Requires installation and activation of Nexter Blocks to access the full capabilities of the Popup Builder block.
Table of Contents

When creating a popup with the Popup Builder block from the Nexter Blocks you get the popup trigger element options within the block. 

While it is a great option but at times you might want to have the trigger element outside the popup or you might want to use some custom elements like an image as the popup trigger element. You can absolutely do that with the Popup Builder block using CSS classes.

To check the complete feature overview documentation of the Nexter Blocks Popup Builder block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure its installed & activated to enjoy all its powers.

Let’s say you want to use the WordPress Image block and when someone clicks on that a popup will open.

Youtube video

For this add both the Image block and the Popup Builder block on the page. Select the Image block and go to Advanced > Additional CSS class(es) and add a class name.

How to show WordPress Popup on link Click of other Element using selector?

Now select the Popup Builder block and go to Display Conditions > On Any Other Element’s Click and turn on the toggle. In the Element’s Class field add the same class name.

How to show WordPress Popup on link Click of other Element using selector?

Now the image will act as the popup toggle button you can use it to open and close the popup.

Note: Make sure there are no popup trigger elements on the page, so set the Type to Hidden in the Popup Load Settings tab.

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!