Quantcast
Channel: WordPress.org Forums » [Landing Page Cat - Coming Soon Page, Maintenance Page & Squeeze Pages] Support
Viewing all articles
Browse latest Browse all 30

How to open page in same tab on button click

$
0
0

Replies: 1

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>


Viewing all articles
Browse latest Browse all 30