Remove redirect JS code.
-
Does its possible to remove the JS code. the page is displayed for a while then it gets redirected. ( Due the theme it may be too heavy and takes a while to render the JS to work )
FILE: class-ur-shortcode-login.php
LINE 51:ur_get_template( 'myaccount/form-login.php', $atts );
LINE 56: /* remove this */window.location = "<php echo trim($redirect_url);?>"
And added to it ( something like this )
FILE: form-login.php
LINE 53:<input type="hidden" name="redirect" value="<?= ($redirect_url) ? $redirect_url: get_permalink() ?>" />
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove redirect JS code.’ is closed to new replies.