• Resolved bpnetworker

    (@bpnetworker)


    Everything is working correctly except the placement of the stars next to the user profile image is positioned way off for my theme. I’ve figured out how to fix it, but not sure how I should do this on my child theme.

    In ‘bp-user-reviews.php’ I need to change this line:
    add_action(‘bp_profile_header_meta’, array($this, ’embed_rating’));

    to:
    add_action(‘bp_before_member_header_meta’, array($this, ’embed_rating’));

    This corrects my issue, but I would like to make this change without overwriting the customization every time I update the plugin.

    Much thanks!

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

    (@wordplus)

    Hi there!

    You should use something like this:

    add_action( 'init', function(){
       global $BP_Member_Reviews;
       remove_action('bp_profile_header_meta', array($BP_Member_Reviews, 'embed_rating' ) );
       add_action('bp_before_member_header_meta', array($BP_Member_Reviews, 'embed_rating' ) );
    });
    • This reply was modified 7 years, 10 months ago by wordplus.
    • This reply was modified 7 years, 10 months ago by wordplus.
    Thread Starter bpnetworker

    (@bpnetworker)

    Awesome! That works!

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customize star placement’ is closed to new replies.