How to open page in same tab on button click
-
I see a number of people wanting to stop the button link from opening in a new tab/window. This is what worked for me, although it will be erased if I update:
in page_template php file on line 89, change “_blank” to “_self”
<button type='button' data-mode='button' onclick='window.open("<?php echo fca_lpc_redirect_url($meta, $post, 'button') ?>","_self")' class='fca-lpc-input-element' id='fca-lpc-optin-button' style='color:<?php echo $button_color ?>; background-color:<?php echo $meta['button_color'] ?>; border-bottom-color:<?php echo $meta['button_border_color'] ?>'><?php echo $meta['button_copy'] ?></button>
- The topic ‘How to open page in same tab on button click’ is closed to new replies.