Viewing 1 replies (of 1 total)
  • Plugin Author donmik

    (@atallos)

    Hi,

    This is buddypress stuff… Buddypress is filtering target blank. First in the file buddypress/bp-xprofile/bp-xprofile-admin.php line 246, it is sending description value to wp_filter_kses function. This function is filtering this tag. Then it uses filters you can find them in buddypress/bp-xprofile/bp-xprofile-filters.php. Search this string: “xprofile_field_description_before_save”.

    So I think the best way will be using javascript. You need to put this javascript in your registration template at the end of the file.

    <script type="text/javascript">
    jQuery(document).ready(function() {
        if (jQuery('.checkbox-acceptance a').length > 0) {
            console.log('a');
            jQuery('.checkbox-acceptance a').attr('target', '_blank');
        }
    });
    </script>

Viewing 1 replies (of 1 total)
  • The topic ‘target="_blank" does not work in Field Title’ is closed to new replies.