Remove Badge From Page Title
-
When viewing my BP profile, I noticed that my verified user’s page title is “Username<span class="bp-verified-badge"></span> | Blog Name”.
I dug around in the plugin for a bit and came across:
public function profile_display_fullname_verified_badge( $username ) { // Prevent badge from breaking <link> and <title> tags in page header if ( doing_action( 'bp_head' ) || doing_action( 'document_title_parts' ) ) { return $username; }
This should in theory work, but is only applying to the fullname version of the function; it’s not in the username version of the function. I tried copying this small portion over to the username function and still no luck. I even tried adding wp_head and get_header to the list of doing_actions but still nothing. Finally I resorted to filtering out the title in my theme’s functions.php file, however I can’t even get that to do anything.
Any advice on how I can remove this from the page’s title would be greatly appreciated!
- The topic ‘Remove Badge From Page Title’ is closed to new replies.