different of your Seo title

#67021
  • Resolved Andy Dufresne
    Rank Math free

    Hi,

    I inspect my posts with SemRush. I have the same pb with many pages/posts

    in Code source , tag header <H1> is different from Seo Title define by your plugin

    In H1, I have title but not the customize rank Math Seo title

    I have this pb with many page/posts

Viewing 5 replies - 16 through 20 (of 20 total)
  • Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I logged into your site and I added following code in your theme’s functions.php file:

    
    function replace_title_with_seo_title( $title, $id = null ) {
    	if($id!=null){
    
    		$title = \RankMath\Paper\Paper::get()->get_title();
    	}
    	return $title;
    }
    
    add_filter( 'the_title', 'replace_title_with_seo_title', 10, 2 );
    

    This seemed to have fixed the issue. Can you please confirm?

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    My Godless !!!!

    I remove your code

    You dont test anything. Every Page have same title
    The Menu are horrible !!

    Look the screenshot !

    Hello,

    If you are using the_title() or get_the_title() function anywhere else, then it will replace the title there too. To replace it just on 1 place, please locate the page title code in your theme files and replace it with \RankMath\Paper\Paper::get()->get_title();

    This should fix the issue.

    I hope that helps.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 16 through 20 (of 20 total)

The ticket ‘different of your Seo title’ is closed to new replies.