how to link popup to image in block editor?

[ad_1]

additional info: popup should open a shortcode block.

got it to work with a HTML block, <a href> (for mouse icon change) and <img> with the ID.
it generally works, but the ALT tag is not showing up….with an image block its show correctly.
So, is there a way to use the “normal” image block?

best regards
Hugofant

  • This reply was modified 12 hours, 53 minutes ago by hugofant. Reason: additional info
  • This reply was modified 12 hours, 53 minutes ago by hugofant. Reason: typo

workaround for the missing “ALT” tag: specifying a “TITLE” tag within the dummy <a href…>

Hi @hugofant,
Greetings. Hope you are doing well.

Regarding your query, You can use the EB Popup with a normal image block. To do this you need to set the popup block trigger to External Element and set an Identifier. Copy that Identifier and set it as an HTML Anchor on the normal image block Advanced option. For reference please check this screencast – https://d.pr/v/DpgMvu

Hope this will help you out. Please let me know how it goes.

Thanks and Regards.

Thanks a lot, much easier and works like a charm.
best regards
Hugofant

Hi @hugofant,

I am glad I was able to help, If you don’t mind me asking, could you do me a favor, and spend 30-sec to review us following this link, this will help us to serve better. I really appreciate any help you can provide.

Link to review – https://projectdmc.org/support/plugin/essential-blocks/reviews/

Please feel free to contact our support anytime you need help, and we are always here to help.

Thanks & Regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer