• Resolved wh_midas

    (@wh_midas)


    Well, the ‘problem’ if you will, is that we need to be able to determine what the ‘initiator-class’ is on a modal that is selected for a page.

    We can currently check for the meta and key values, but we need to echo that initiator-class within a link on the page. i.e. The “contact-page-modal” is selected for the contact page. Within the easy modal management page, we can see that in order to initiate that modal on our contact page we have to have the associated class with it [ modal-1] . How do we extract that from the meta on page?

    https://www.ads-software.com/plugins/easy-modal/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    Hey Midas,

    An easier method may be simply using our inline shortcode modals.

    You can read more in the getting started guide, but you can create them inline for each page in the editor.

    So for contact page example above do.

    Contact page content.

    [modal id=”contact-page”] Modal Content here [/modal]

    then you can trigger it to open using the class eModal-contact-page.

    The modals with IDs are mainly for use in multiple places. We have attempted to allow many levels of creating modals depending on the situation. Shortcodes sounds like the winner for you as you can manage each pages modal content via that pages editor rather than a separate screen.

    This thread is being marked as resolved due to inactivity until further notice. If this is not resolved, please let us know!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modal ID’ is closed to new replies.