[Modal Dialog] Any way to trigger from a link? (5 posts)

  1. tjbrewers
    Posted 5 years ago #

    Is there a way to trigger one of the modal dialog boxes from a link on a page or nav bar instead of just page load?

  2. Yannick Lefebvre
    Posted 5 years ago #

    Yes, this is possible. Just set Modal Dialog for manual trigger in the options, then use the following code to open it, or something along these lines.

    [code][a href="#" onClick="openDialog()" rel="nofollow"]Click here to open dialog[/a]

    [script type="text/javascript"]
    function openDialog() {
    [/script] [/code]

    Just replace the square brackets with HTML brackets.

  3. Chris Demetriad
    Posted 4 years ago #

    Hi there,

    Where is that option to set the manual trigger? I know, it's been a while and I am trying it on WP 3.3 but still :).

    Thank you.

  4. Yannick Lefebvre
    Posted 4 years ago #

    It is on the Modal Dialog Configuration page. The exact option name is: "Set display cookies manually"

  5. Chris Demetriad
    Posted 4 years ago #

    The plugin is fantastic and your support out of this world, keep up the good work and thank you. I am now going to rate it.

Topic Closed

This topic has been closed to new replies.

About this Topic