Title: modal not triggering
Last modified: June 4, 2024

---

# modal not triggering

 *  Resolved [dee0954](https://wordpress.org/support/users/dee0954/)
 * (@dee0954)
 * [2 years ago](https://wordpress.org/support/topic/modal-not-triggering/)
 * Hello.
 * I’ve placed the modal trigger button along with the modal window code inside 
   a custom html WP pattern. I got the code from the Edit as HTML view of the block.
   
   This makes the button inactive and does not trigger the modal. When it was placed
   outside the custom html block, it worked. The custom html itself is correct with
   every div closing correctly.
 * Could you help me resolve this problem?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mohsin Ghouri](https://wordpress.org/support/users/mohsinbsf/)
 * (@mohsinbsf)
 * [2 years ago](https://wordpress.org/support/topic/modal-not-triggering/#post-17808203)
 * Hi [@dee0954](https://wordpress.org/support/users/dee0954/),
 * Thanks for getting in touch with us.
 * Please let me know why you are using HTML instead of the block and what you want
   to achieve so that I can assist you accordingly.
 * Looking forward to hearing from you.
 * Have a nice day!
 *  Thread Starter [dee0954](https://wordpress.org/support/users/dee0954/)
 * (@dee0954)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/modal-not-triggering/#post-17815537)
 * Hi,
 * I have a custom coded section with CSS for a section on the page. I intended 
   to use your modal button/block for the form required in modal by pasting the 
   code of your block into the custom html section.
 * The problem resolved itself when i recreated the modal and pasted its HTML code.
   It is working as intended.
 * Thank you for all your work and support on this robust plugin!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘modal not triggering’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif?rev
   =3240412)
 * [Spectra Gutenberg Blocks – Website Builder for the Block Editor](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dee0954](https://wordpress.org/support/users/dee0954/)
 * Last activity: [1 year, 12 months ago](https://wordpress.org/support/topic/modal-not-triggering/#post-17815537)
 * Status: resolved