Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author darrenmeehan

    (@darrenmeehan)

    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?

    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.