Title: Remove Favorite Button not working
Last modified: August 22, 2016

---

# Remove Favorite Button not working

 *  [ronia](https://wordpress.org/support/users/ronia/)
 * (@ronia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/remove-favorite-button-not-working/)
 * buddypress-like.0.1.9
    WP 4.1, BP 2.1.1, WP multisite enabled Network activated
   Buddypress-like
 * Remove Favorite Button not working
    Favorite button still persists
 * [https://github.com/Darrenmeehan/BuddyPress-Like/issues/18](https://github.com/Darrenmeehan/BuddyPress-Like/issues/18)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [darrenmeehan](https://wordpress.org/support/users/darrenmeehan/)
 * (@darrenmeehan)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/remove-favorite-button-not-working/#post-5675250)
 * At the moment favourites are removed through jQuery when the option is selected.
   They may appear for a brief moment while the page loads, but they shouldnt appear
   once the jQuery is loaded. Is this the case?
 *  [bones852](https://wordpress.org/support/users/bones852/)
 * (@bones852)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/remove-favorite-button-not-working/#post-5675515)
 * Favorite Button still persists because there is an error with jQuery.
    `add_action('
   get_header' , 'bp_like_insert_head' );` This line in `scripts.php` adds script
   which should remove favorite button at the beginning of <head> tag. And that’s
   the problem: jquery wasn’t even added to <head> tag yet and thus won’t work. 
   I’ve changed `add_action( 'get_header' , 'bp_like_insert_head' );` to `add_action('
   wp_head' , 'bp_like_insert_head' );` and now everything is great.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove Favorite Button not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-like.svg)
 * [BuddyPress Like](https://wordpress.org/plugins/buddypress-like/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-like/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-like/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-like/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-like/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [bones852](https://wordpress.org/support/users/bones852/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/remove-favorite-button-not-working/#post-5675515)
 * Status: not resolved