Support » Plugin: Modal Guten Block » Great plug-in!

  • Thank you for this plugin! Works great and I gladly put in a donation to support your efforts.

    It is absolutely worth five stars as is, but it would be perfect if I could also trigger a pop-up by clicking on a text link, like a few words in an text block, which is what I do now to link to a URL accessible item. So in addition to the dedicated text trigger option you already have, but which creates a dedicated block. I don’t know if that is even possible of course. If not, no problem, still a great plug-in.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author merbmerb

    (@merbmerb)

    Yes you should be able to do this by using the Custom HTML Block. By using this you can wrap text with a class and then use the trigger on class option in the modal block. So you might have something like this in the Custom HTML Block.

    This is some sample text with a link to the modal <span class=”myModalLink”>open my modal</span>

    You can then use the class myModalLink to trigger the modal.

    Hope that helps and thanks for the donation.

    Thread Starter b777

    (@b777)

    Thank you for your fast response. That does work fine. I switched to Gutenberg only recently and did not yet realize the possibilities of the custom HTML block.

    One final (for now) question though: I take it I will have to use a different class for each different class trigger modal on a specific page. Or must every different modal on the whole site have a unique class? And if that is the case, can I than use the same modal on a different page by just inserting the class in the span code on that new page?

    So actually two questions 😉

    Plugin Author merbmerb

    (@merbmerb)

    It’s per page. So you could use the same class in different locations on a page to trigger the same modal or different classes on the same page to trigger modals. The modal to be triggered must be added to each page it is triggered from. Hope that makes sense.

    Thread Starter b777

    (@b777)

    Sure does, and I just doubled my donation to recognize the fact that the additional in-line modal option I was looking for already exists and also for the crash course on html blocks 😉 Very helpful!

    Small suggestion: perhaps some future update could offer smooth opening and closing of the modals.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this review.