Support » Fixing WordPress » Removed profile links in bp-custom, now twitter link is all messed up

  • Resolved kvschwartz

    (@kvschwartz)


    I removed the user profile links in bp-custom using

    <?php
    //
    function remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action( 'bp_init', 'remove_xprofile_links' );
    ?>

    And now my twitter link is all messed up. This is what it looks like when I enter my username:

    Twitter
    <a href="http://twitter.com/harlotstarlet">harlotstarlet</a & g t ; (without spaces)

    And this is the code affecting it:

    <a href="https://twitter.com/<?php echo $twittercj_username; ?>" target="_blank"><img id="twiticon" src="http://www.creativene.com/images/twitter-icon.png"></a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

    What can I do to fix this?

    Thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Removed profile links in bp-custom, now twitter link is all messed up’ is closed to new replies.