This topic has 7 replies, 5 voices, and was last updated 11 years by hughm.

  • Author
  • #6413
     joeldecker
    Participant

    I apologize if there is a thread for this already,
    wasn’t sure how to search for it as I’m not sure what it’s called…
    I am trying to turn off the feature that makes the copy text that users
    fill in their profile with to be linkable. There seems to be phrases or
    words, perhaps related to commas, that become links.
    Is there a way to turn that function off?

    #6504
     SQadmin
    Keymaster

    Hi,
    I think there is one but here is the code you have to add to sweetdate-child/functions.php

    COPY CODE
    
    /* remove profile field links */
    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' );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6549
     joeldecker
    Participant

    Brilliant! thank you,
    sorry I couldn’t find the thread earlier.

    #7694
     bananalust
    Participant

    I tried placing this in sweetdate-child/functions.php as well as bp-custom.php files and it didn’t work. Do you have an idea of why that might be the case?

    #7748
     SQadmin
    Keymaster

    Code works. I don’t know why it doesn’t. Make sure code is complete and you have child theme activated

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #7885
     hughm
    Participant

    Strange question: The links that you mention do not show up on my profile. I believe you are talking about the links on a member’s own profile that when you click them you can see all the other members that match your profile criteria. The Buddypress Default theme uses these and I like them. I would actually like to display these links. Any idea why they don’t show for me? I have not put the above code into my functions.php form. Is there a way to turn these on and off from the admin dashboard?

    #7981
     Abe
    Keymaster

    Hi, Those links will appear by default. You probably have a text that is too long or something. Theme isn’t doing anything to stop them by default

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #8081
     hughm
    Participant

    The links were actually showing up but were in the similar color (grey) to the text so I couldn’t see them. My mistake. Searching now to try and make the links blue.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘turning off linking words in users profile text’ is closed to new replies.

Log in with your credentials

Forgot your details?