• 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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() {
    jQuery("a#inline").trigger('click')
    }
    [/script] [/code]

    Just replace the square brackets with HTML brackets.

    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.

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

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Modal Dialog] Any way to trigger from a link?’ is closed to new replies.