[Plugin: SimpleModal Login] Invoke from JS
-
Hi,
i couldn’t figure out how to invoke simplemodal-login with jQuery.
I use a PHP Widget to easy edit the PHP without changing themefunctions.
The code is
`<?php
if (is_user_logged_in() ) {
/* shortened code: show page */
}
else {
echo '<script type="text/javascript">';
echo 'jQuery(document).ready(function($) {';
echo '$(\'.simplemodal-login\').trigger(\'click.simplemodal-login\')';
echo '})';
echo '</script>';
}
?>`
But when opening the page, there are no JS errors and no simplemodal-login for not logged in users.
Even tried with
echo '$(\'.simplemodal-login\').bind(\'click.simplemodal-login\')';
but no success.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: SimpleModal Login] Invoke from JS’ is closed to new replies.