Skip to content

Instantly share code, notes, and snippets.

@zanematthew
Created March 4, 2012 03:46
Show Gist options
  • Save zanematthew/1970585 to your computer and use it in GitHub Desktop.
Save zanematthew/1970585 to your computer and use it in GitHub Desktop.
WordPress Ajax Login -- Target Div snippet
<?php
/**
* Target div for login form and container for dialog.
*
* This could easily be hooked into wp_footer() or just pasted into footer.php
* We have out parent div which is the dom element that jQuery UI modal is
* being attached to. The child div is our target element for our ajax
* requested form.
*/
?>
<div id="bmx_rs_dialog" class="dialog-container" title="Login">
<div id="bmx_rs_login_target" style="display: none;" class="bmx-rs-login-dialog"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment