• Resolved bmcconach

    (@bmcconach)


    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bmcconach

    (@bmcconach)

    Incompatible custom plugin was found to be the culprit, remedied.

    Hi also I have this problem, it shows me <span class = “……> in the name of the page. I understood from your answer that it was an incompatible plugin, which one? There is not a function to delete in order not to have the title changed?
    Hello

    Resolved! the incompatible plugin was “All In One SEO Pack“. Eliminated and now everything is ok!

    Hi, I have contacted the developers of the “all in one SEO” plugin and they replied that the problematic of the title with this code is due only to your plugin. Is there a possibility of eliminating this error and staying with both plugins active?
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Badge From Page Title’ is closed to new replies.