Site icon Hip-Hop Website Design and Development

Use wp.media templates to create completely customized modal

Following up on this reply I am making an attempt to find out the right way to create a modal with fully distinctive menu gadgets/content material than the media modal.

In the event you add a brand new state you’ll be able to add a brand new menu tab and have it render the suitable content material when clicked. Nonetheless, what I’ve discovered to this point is that when you do not embrace the traditonal wp.media.controller.Library() states (for gallery, insert, and many others) then the menu doesn’t render in any respect and you’re left with an empty media body.

I’ve began a gist for a plugin, and the modal opens, however to this point there’s nothing in it.

Does anybody know the right way to create customized frames with customized states?