Viewing 4 replies - 1 through 4 (of 4 total)
  • You could overwrite the css with !important in your theme stylesheet.
    File: /wp-content/themes/[yourthemename]/style.css

    /*CSS FOLLOW BUTTON*/
    .follow{
      background: red!important;
    }
    /*CSS UNFOLLOW BUTTON*/
    .unfollow{
     background: blue!important;
    }
    Thread Starter Aill3urs

    (@aill3urs)

    Thanks but i need to do more than just a CSS change, i need to add <span></span> with some sentences inside ??

    Do you think i can over write the button in function.php ?

    Ah, that wasn’t clear to me ??

    You can write the button in function.php. There is a topic somewhere about the options but I can’t find it anymore.

    I did a change to the link text with this function in functions.php:

    //CUSTOM FOLLOW BUTTON
    function my_custom_follow_button_args( $button_args, $leader_id, $follower_id ) {
    	$button_args['link_text'] = '';
    
    	return $button_args;
    }
    add_filter( 'bp_follow_get_add_follow_button', 'my_custom_follow_button_args', 10, 3 );

    If i find the topic i will let you know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redisgn Follow unFollow Button’ is closed to new replies.