• Resolved BJ_Bundy

    (@bj_bundy)


    Hi

    I’ve added the “Contact” link in my bbPress forum. How can I change the word “Contact” to something different?

    Thank you for your help in advance! ??

    • This topic was modified 3 years, 10 months ago by BJ_Bundy.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    What code did you used to show that link?

    Thread Starter BJ_Bundy

    (@bj_bundy)

    add_action( ‘bbp_theme_after_reply_author_details’, function() {

    $user_nicename = get_the_author_meta(‘user_nicename’);

    if( ! $user_nicename || ! fep_current_user_can(‘send_new_message_to’, $user_nicename ) ){
    return ”;
    }
    ?>
    <div class=”fep-bp-send-message”><?php echo do_shortcode( “[fep_shortcode_message_to class=’fep-bp-send-message-a’]”); ?></div>
    <?php
    });

    I put this code into the functions.php, just like you wrote in another answer here in the support forum. It works fine, I just want to change the link’s name from “Contact” to something else.

    Thank you in advance.

    Plugin Author Shamim Hasan

    (@shamim51)

    Thread Starter BJ_Bundy

    (@bj_bundy)

    Thank you for your help. But I have no clue where to put this shortcode. Could you please let me know!

    Thank you!

    Plugin Author Shamim Hasan

    (@shamim51)

    You already have [fep_shortcode_message_to class='fep-bp-send-message-a'], replace that with [fep_shortcode_message_to class='fep-bp-send-message-a' text='Your Text'] (Change “Your Text” with whatever you like.

    Thread Starter BJ_Bundy

    (@bj_bundy)

    Thank you very much! It worked!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Link in bbPress forum’ is closed to new replies.