Hypelink to open modal with custom post

Hi there!

We have a site with teacher bios as custom posts. What I want to do is open the custom post in a modal from a link on an image. As in, a person clicks on the link and the modal with the teacher bio (custom post) pops up. How can I do this?

Hi There,

You can try with the Popovers & Tooltips shortcode:

http://demo.theme.co/integrity-1/shortcodes/popovers-and-tooltip/

Let us know how it goes!

Popovers is nice. I think I will use that somewhere else.

It would be good to be able to do it like on this page:

https://художественная-школа-симферополь.рф/about/

We had to come up with a creative solution to make it work like we want to, but it would be nice to have a simpler way that is native to Pro.

Hi,

You can use the theme’s native lightbox.


http://demo.theme.co/integrity-1/shortcodes/responsive-lightbox/

eg.

<div id="my-content" style="display:none;">
  ...content here...
</div>

<a href="#my-content" class="my-lightbox" data-type="inline">Click Me</a>

[lightbox selector=".my-lightbox"]

Ok, thanks

Glad we could help,

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.