• Resolved gayle1

    (@gayle1)


    I have just installed Forminator and have created a contact form. In the subscribe checkbox I have put a link to the Privacy Policy and set it to open in a new tab but it merely opens in the same tab. I would appreciate any input. Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hi @gayle1

    Sorry for the inconvenience. This has been already reported to our development team and a fix will be included in upcoming versions of Forminator.

    Meanwhile, our team has provided a workaround that could help in this case, which is, adding the link through a shortcode. Please add a must-use plugin to your site’s wp-content/mu-plugins folder like this https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins, then add the following code to the plugin’s php file:

    <?php
    add_shortcode( 'wpmudev_link_shortcode', 'wpmudev_add_link_html_field' );
    function 'wpmudev_add_link_html_field' (){
    	return "<a  target='_blank'>WPMUDEV</a>"; //Replace this with your link
    }
    add_filter( 'forminator_replace_variables', 'do_shortcode' );
    

    Note: In the code please replace the link with your link.

    After replacing the link you can use the shortcode [wpmudev_link_shortcode] in the field.

    We recommend to test this on the dev/staging version first before putting it on the live site.

    Hope it will solve your problem.

    Kind Regards

    Luis

    Thread Starter gayle1

    (@gayle1)

    Thank you, Luis. I will work on that today.

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @wpmudev-support7 ,

    We haven’t heard from you for several days now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Opening lilnk in new tab not working’ is closed to new replies.